欢迎光临
我们一直在努力

无限轮播控件

建站超值云服务器,限时71元/月

无限轮播控件

项目介绍:

循环轮播控件2.0版,可定制化控件  

SYScrollerViewCycleDemo

SYCycle

循环轮播控件2.0版,全新改版,可定制化视图,加载网络图片需要配合SDWebImage使用

SYCycleManage

SYCycleManage 轮播控件的管理类,使用、视图定制全部通过该类实现

pragma makr — 点击回调

点击回调提供两种方式

1、通过使用代理方法

  • (void)cycleManager:(SYCycleManager )manager index:(NSInteger)index model:(SYCycleModel )model;

2、通过block方式回调

@property (nonatomic, copy) void (^cycleTouchCallback)(SYCycleManager currManager, NSInteger index, SYCycleModel currModel);

pragma mark — 必选项

//控件父视图

@property (nonatomic, weak) UIView *parentView;

//源数据

@property (nonatomic, strong) NSArray<SYCycleModel> cycleDatasource;

pragma mark — 定制项

//控件分页风格

@property (nonatomic, assign) SYCyclePageStyle style;

//分页控件设置图片

@property (nonatomic, strong) UIImage *pageIndicatorTintImage;

@property (nonatomic, strong) UIImage *currentPageIndicatorTintImage;

//分页控件设置颜色

@property (nonatomic, strong) UIColor *pageIndicatorTintColor;

@property (nonatomic, strong) UIColor *currentPageIndicatorTintColor;

//控件宽度,默认为屏幕宽度

@property (nonatomic, assign) CGFloat cycleWidth;

//控件高度,默认为180

@property (nonatomic, assign) CGFloat cycleHeight;

//停留时间,默认4秒

@property (nonatomic, assign) NSTimeInterval duration;

大家如果觉得好用不要忘了star,另外如果有问题可以联系我QQ:1102210843 tel:18610863095,大家共同学习,谢谢

Github:https://github.com/1102210843/SYScrollerViewCycleDemo

code4app

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 无限轮播控件
分享到: 更多 (0)