IOS 自定义 无限图片轮播器开源库
2016-05-27 11:39
447 查看
本源码提供四个接口,可以随意设置图片轮播器的:
(1)size
(2)location
(3)参与循环的图片数量
(4)加载网络图片
(5)每张图片的detial。
总之就是可以广泛应用于各种app图片轮播器需求。
先来看看我用此开源库实现的一个简单的图片轮播器的效果:
调用了接口:
-(UIScrollView *)carouseIImageWithURLArray:(NSMutableArray *)urlArray width:(CGFloat)width height: (CGFloat)height;
除此以外还有三个接口可用:
-(UIScrollView *)carouseIImageWithURLArray:(NSMutableArray *)urlArray withDetialArray:(NSMutableArray *)detialArray width:(CGFloat)width height:(CGFloat)height;
-(UIScrollView *)carouseIImageWithURLDict:(NSMutableDictionary *)urlDict width:(CGFloat)width height:(CGFloat)height;
-(UIScrollView *)carouseIImageWithURLDict:(NSMutableDictionary *)urlDict withDetialDict:(NSMutableDictionary *)detialDict width:(CGFloat)width height:(CGFloat)height;
需要源码的同学可以去github地址下载:"https://github.com/holyHbw/infinitePicCarousel-"。
(1)size
(2)location
(3)参与循环的图片数量
(4)加载网络图片
(5)每张图片的detial。
总之就是可以广泛应用于各种app图片轮播器需求。
先来看看我用此开源库实现的一个简单的图片轮播器的效果:
调用了接口:
-(UIScrollView *)carouseIImageWithURLArray:(NSMutableArray *)urlArray width:(CGFloat)width height: (CGFloat)height;
除此以外还有三个接口可用:
-(UIScrollView *)carouseIImageWithURLArray:(NSMutableArray *)urlArray withDetialArray:(NSMutableArray *)detialArray width:(CGFloat)width height:(CGFloat)height;
-(UIScrollView *)carouseIImageWithURLDict:(NSMutableDictionary *)urlDict width:(CGFloat)width height:(CGFloat)height;
-(UIScrollView *)carouseIImageWithURLDict:(NSMutableDictionary *)urlDict withDetialDict:(NSMutableDictionary *)detialDict width:(CGFloat)width height:(CGFloat)height;
需要源码的同学可以去github地址下载:"https://github.com/holyHbw/infinitePicCarousel-"。
相关文章推荐
- iOS 自定义照相机
- iOS知识---针对多个显示内容空间不定内容长度的显示问题Content Hugging 和 Content Compression Resistance
- iOS AVCaptureSession实现获取摄像头图像,并识别图片中身份证号码
- iOS 画字,画线,矩形,画图,动画
- ios 对FMDB 简单封装
- 禁用ios7 手势滑动返回功能
- iPhone上看到好的动效设计,如何保存成GIF
- iOS 点击通知栏消息跳转到指定的页面
- Nagios配置和命令介绍(二 )
- iOS 应用支持 IPv6
- 闲来无事,整理一下xcode快捷键全集!
- github上很好的iOS资源集锦
- iOS 项目真机调试
- iOS推送大全
- iOS原生代码通过webView与js脚本交互
- iOS—修改AFNetworking源文件可接收text/plain的方法
- iOS—修改AFNetworking源文件可接收text/plain的方法
- ios远程推送消息时运行在前台怎么处理
- pod install时出现错误"The dependency 'xxx' is not used in any concrete target"
- iOS开发之调用系统打电话发短信接口以及程序内发短信