CWCarousel icon indicating copy to clipboard operation
CWCarousel copied to clipboard

自定义customPageControl 属性问题

Open 7General opened this issue 6 years ago • 1 comments

使用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的时候替换原来的方法调用

7General avatar Nov 30 '18 10:11 7General

感谢反馈!

baozoudiudiu avatar Dec 05 '18 01:12 baozoudiudiu