测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2016年7月 |
由CrespoXiao维护。
依赖 | |
libextobjc | >= 0 |
SDWebImage | >= 0 |
Masonry | >= 0 |
CPInfiniteBanner是一个循环播放的组件,可以左右无缝滑动和自动切换图片。
CPInfiniteBannerView *banner = [[CPInfiniteBannerView alloc]initWithContainerView:self.view responseBlock:nil];
banner.frame = CGRectMake(20, 30, self.view.frame.size.width-40, 90);
banner.placeHolder = [UIImage imageNamed:@"3.jpg"];
banner.duration = 3.0;
banner.imageArray = [NSMutableArray arrayWithArray:array];
在scrollView上放置3个imageView,左右2个imageView用于过渡,利用scrollView的代理来实现轮播逻辑。也可以参考其他实现方式 https://github.com/leichunfeng/LCFInfiniteScrollView
CrespoXiao http://weibo.com/crespoxiao
CPInfiniteBanner许可协议为MIT。请参阅LICENSE文件了解详细信息。