MSCycleScrollView
一款定制性极高的轮播图,可根据自己需求自定义PageControl的样式(包括小圆点+横线的样式)、颜色、动画,以及各点之间的间距大小等
代码参考于一款优秀的轮播图框架:SDCycleScrollView。也十分感谢高少东(gsdios)作者。
效果图展示:
(请原谅电脑太卡,不能为大家上传gif图片难受!!!)





集成方式
一、Cocoapods集成
pod 'MSCycleScrollView','~>0.0.1'
一、手动集成
- 下载Demo,将Demo中的MSCycleScrollView文件夹拖入所需工程中
- 在需要的文件下
#import "MSCycleScrollView.h"
使用方式(支持StoryBoard或者Nib)
使用方法与SDCycleScrollView类似,或者可下载Demo查看,这里就不多赘述。
注意事项
1、关于PageControl的样式自定义需要创建UIView继承 "MSAbstractDotView" 实现,具体方式可查看Demo中的"MSExampleDotView"类
- (void)changeActivityState:(BOOL)active dotView:(nonnull MSAbstractDotView *)dotView pageDotSize:(CGSize)pageDotSize;
网友评论