简单轮播图,使用UIButton实现

这里写图片描述
实现方法很简单,下面给大家写下实现代码:、、、_dz_scrollview = [[DZScorllView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight/4+40)]; _dz_scrollview.dataSource = @[@"http://upload-images.jianshu.io/upload_images/4032443-6dd3429b9d4360c8.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240",@"http://upload-images.jianshu.io/upload_images/102559-3aaac594bfd6fe9b.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240",@"http://upload-images.jianshu.io/upload_images/29021-89926ef0f86bd670.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240",@"http://upload-images.jianshu.io/upload_images/4067161-ac329fffd016fee5.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/720/q/50"]; _dz_scrollview.isAutoTroll = YES; _dz_scrollview.delegate = self; [headView addSubview:_dz_scrollview];、、、这里是总共实现的代码,当你这里使用的是url,如果没有url的话就给一个图片,名字叫做aboutimg就OK了,自己可以在自己项目中给的;到这里项目就实现了;
以上就是简单轮播图,使用UIButton实现的详细内容,更多内容请关注技术你好其它相关文章!
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场