美文网首页iOS 开发
ios下的轮播图,简单易用,欢迎使用!

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

作者: 迡風旳等待 | 来源:发表于2016-08-03 09:49 被阅读0次

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];

相关文章

网友评论

    本文标题:ios下的轮播图,简单易用,欢迎使用!

    本文链接:https://www.haomeiwen.com/subject/misqsttx.html