eryuxinling
eryuxinling
- (NSInteger)currentPage { return self.currentPage; /// 此处应该修改为:return self.myCurrentPage; } 否则在CWPageControl.m其他地方调用:self.currentPage会造成循环调用。
具体代码: /** 相关代理 */ @property (nonatomic, assign) id _Nullable delegate; /** 相关数据源 */ @property (nonatomic, assign) id _Nullable datasource;
 应该修改为: - (NSInteger)currentPage { return self.myCurrentPage; } 希望有空能修复一下,谢谢。