CWCarousel
CWCarousel copied to clipboard
自定义customPageControl 属性问题
使用customPageControl 自定义时,我点击其中一个item时,会发现
-(void)setCurrentPage:(NSInteger)currentPage
该方法会调用两次,且currentpage的值不一样。
ps:感觉在点击collectionview时,不需要去调用
[self adjustErrorCell:YES];
直接写 self.currentIndexPath = indexPath; 是否也可以哈
是否也可以这样使用
- (void)didSelectItemCellAdjustErrorCell:(BOOL)isScroll forIndexPath:(NSIndexPath*)indexPath{
if(isScroll) {
self.self.currentIndexPath = indexPath;
[self scrollViewWillBeginDecelerating:self.carouselView];
}
}
该方法直接在点击cell的时候替换原来的方法调用
感谢反馈!