Commit 7921ebe1 authored by lufei's avatar lufei

fix:

1.修复定时滚动时,存在偏移误差,原因是UIScrollView的setContentOffset动画时长大于0.3s,重置页面延时执行时间为0.3s,产生冲突
2.优化代码,pageWillShow调用时机修改
3.删除冗余代码
parent d85a8446
......@@ -70,6 +70,8 @@ typedef void(^DZXCarouselPageWillShowBlock)(NSInteger index, id data);
@property (nonatomic, copy) NSString *propertyName;
/// 自动滚动
@property (nonatomic, assign) BOOL autoScroll;
/// 允许滑动
@property(nonatomic, assign) BOOL allowSlide;
/// pageControl
@property (nonatomic, assign) BOOL showPageControl;
/// pageControl普通状态的图片
......@@ -103,7 +105,7 @@ typedef void(^DZXCarouselPageWillShowBlock)(NSInteger index, id data);
/// @param frame frame
/// @param configBlock 配置回调
/// @param tapBlock 点击回调
/// @param pageShowBlock 页面将展示回调
/// @param pageWillShowBlock 页面将展示回调
/// @param pageShowBlock 页面展示回调
- (instancetype)initWithFrame:(CGRect)frame
configBlock:(DZXCarouselConfigBlock)configBlock
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment