循环ScrollView,支持自动滚动、支持点击事件代理回调,已处理NSTimer 销毁,处理AutoLayout 适配
循环ScrollView,支持自动滚动、支持点击事件代理回调,已处理NSTimer 销毁,处理AutoLayout 适配。支持Cocoapods
Swift 其它杂项
共2Star
详细介绍
HAutoScrollView
循环ScrollView,支持自动滚动、支持点击事件代理回调,已处理NSTimer 销毁,处理AutoLayout 适配。
启动自动滚动
[autoScroll setAutoFlip:true];
设置滚动时间
[autoScroll setFlipInterval:3.0];
Delegate&DataSource
[autoScroll setDelegate:self];
[autoScroll setDataSource:self];
点击事件
-(void)autoScrollView:(HAutoScrollView *)asView didSelectAtPageIndex:(NSInteger)pIndex;
数据源
-(NSInteger)numberOfPagesInHAutoScrollView:(HAutoScrollView *)asView;
-(UIView *)pageAtIndex:(NSInteger)index autoScrollView:(HAutoScrollView *)asView;
Installation
HAutoScrollView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "HAutoScrollView"
License
HAutoScrollView is available under the MIT license. See the LICENSE file for more info.
===
效果图
1 | 2 | 3 |
---|---|---|