12207480 / TYCyclePagerView

a simple and usefull cycle pager view ,and auto scroll banner view(轮播图) ,include pageControl for iOS,support Objective-C and swift
MIT License
1.81k stars 333 forks source link

只有一个item 时,还在循环滚动 #92

Closed Suzhibin closed 5 years ago

Suzhibin commented 5 years ago

只有一个item 时,还在循环滚动,感觉很怪异,如果只有一个item 时,能设置成不滚动吗

Suzhibin commented 5 years ago

找到解决办法了 我在请求完数据时。设置了一下 if (self.datas.count==1) { _pagerView.isInfiniteLoop = NO; }else{ _pagerView.isInfiniteLoop = YES; } [_pagerView reloadData];

12207480 commented 5 years ago

是的