Skip to content

The easiest way to use image circulate,超简单好用的图片轮播框架

License

Notifications You must be signed in to change notification settings

CocoaDreamer/XRCarouselView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XRCarouselView

The easiest way to use image circulate

超简单好用的图片轮播框架

仅仅两个imageView实现图片轮播


#XRCarouselView的优点 1.文件少,代码简洁

2.不依赖任何其他第三方库,耦合度低

3.同时支持本地图片及网络图片

4.可修改分页控件位置,显示或隐藏

5.自定义分页控件的图片,就是这么个性

6.自带图片缓存,一次加载,永久使用

7.性能好,占用内存少,轮播流畅

#如何集成XRCarouselView

####手动导入 将XRCarouselView文件夹中的所有文件添加到项目中 ####cocoapods导入 pod 'XRCarouselView'

####使用 1.导入主头文件 XRCarouselView.h

2.创建XRCarouselView,设置图片(路径)数组

3.将XRCarouselView添加到要展示到view上面

#XRCarouselView的常用属性方法

1.imageArray:要轮播的图片数组,可传本地图片或网络图片路径

2.time:设置每页的停留时间

3.setPageControlPosition:anchorPoint::设置分页控件的位置,第二个参数表示是设置中点还是原点

4.pageControlHidden:隐藏分页控件

5.setPageImageView:andCurrentImage::设置分页控件的图片

6.void(^imageClickBlock)(NSInteger index):图片被点击后要执行的代码

7.clearDiskCache:清除沙盒中的图片缓存

#效果演示

About

The easiest way to use image circulate,超简单好用的图片轮播框架

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.8%
  • Ruby 2.2%