SDCycleScrollView icon indicating copy to clipboard operation
SDCycleScrollView copied to clipboard

此方法无效‘- (void)makeScrollViewScrollToIndex:(NSInteger)index’

Open xiangzq opened this issue 3 years ago • 4 comments

这个方法并没有效果,无法指定轮播图滚动到‘index’页

xiangzq avatar Nov 18 '21 10:11 xiangzq

找到解决方案了嘛?作者能否出来解答一下。

lifangchao123 avatar Dec 15 '21 07:12 lifangchao123

替换成这个方法

  • (void)makeScrollViewScrollToIndex:(NSInteger)index{ if (self.autoScroll) { [self invalidateTimer]; } if (0 == _totalItemsCount) return;

    if (self.infiniteLoop) { [self scrollToIndex:(int)(_totalItemsCount * 0.5 + index)]; }else{ [self scrollToIndex:(int)index]; }

    if (self.autoScroll) { [self setupTimer]; } }

18840851520 avatar Feb 18 '22 03:02 18840851520

在非循环下无法正常使用的问题,目前最新版本未修复更新

wlyy460 avatar Jan 12 '24 06:01 wlyy460

你好,你发给我的邮件已收到,看到邮件我会主动与你联系!谢谢!

chinaiOSSwift avatar Jan 12 '24 06:01 chinaiOSSwift