Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,12 @@ typedef enum {
/** 轮播文字label对齐方式 */
@property (nonatomic, assign) NSTextAlignment titleLabelTextAlignment;

/** 设置边缘回弹 (不自动轮播 第一张 和 最后一张 拖动边缘 回弹设置) **/
@property (nonatomic, assign) BOOL allowBounces;

/** 滚动手势禁用(文字轮播较实用) */
- (void)disableScrollGesture;


////////////////////// 清除缓存API //////////////////////

/** 清除图片缓存(此次升级后统一使用SDWebImage管理图片加载和缓存) */
Expand Down
5 changes: 5 additions & 0 deletions SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ - (void)disableScrollGesture {
}
}

- (void)setAllowBounces:(BOOL)allowBounces {
_allowBounces = allowBounces;
_mainView.bounces = allowBounces;
}

#pragma mark - actions

- (void)setupTimer
Expand Down