ios下的轮播图,简单易用,欢迎使用!

github下载地址:https://github.com/MoonXYX/XYXCirculateView

if you want to use this library,just a few steps: 

Firstly,import the name of the library --> XYXCirculateView 

Than write the following lines of code

// create object

XYXCirculateView *circulate = [[XYXCirculateViewalloc]initWithFrame:CGRectMake(0,0,self.view.bounds.size.width,200)];

// add view

[self.viewaddSubview:circulate];

//set images to show (the number of iamge is free)

circulate.imagesArray = @[[UIImageimageNamed:@"imagename1"],[UIImageimageNamed:@"imagename2"],[UIImageimageNamed:@"imagename3"],[UIImageimageNamed:@"imagename4"]];

//the following code is not necessary (currentColor default is green ,otherColor default is gray)

circulate.currentColor = [UIColorredColor];  circulate.otherColor = [UIColordarkGrayColor];

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容