Skip to content

huluqiu/ALCircleScrollView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALCircleScrollView

一个无线循环的轮播器,支持自定义视图

示例

使用

//初始化
self.circleView = [[ALCircleScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200)];
//设置委托
self.circleView.delegate = self;
//载入数据
[self.circleView reloadData];

ALCircleScrollViewDelegate

//轮播视图的数目
- (NSUInteger)numberOfViewsInScrollView:(UIScrollView *)scrollView;
//自定义轮播中的视图
- (UIView *)scrollView:(UIScrollView *)scrollView viewAtIndex:(NSUInteger)index;
//点击视图时的回调
@optional
- (void)scrollView:(UIScrollView *)scrollView didSelectedAtIndex:(NSUInteger)index;

About

无限轮播器,支持自定义视图

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published