代码拉取完成,页面将自动刷新
如果使用过程中,有什么问题欢迎issues。
请使用最新版本 1.3.0
版本信息 | 更新描述 |
---|---|
1.3.0 | * 修复StoryBoard在部分设备显示问题 |
1.2.9 | * 增加支持文本Leading约束属性titleLeading * PageControl的Bottom约束属性pageControlBottom |
1.2.8 | * 支持纯文本部分属性修改,没有开放Label |
1.2.7 | * 支持纯文本 |
1.2.6 | * 修改自定义PageControl反向滚动时候,pageControl的方向控制问题 |
1.2.5 | * 修复自定义PageControl快速滚动问题,修复系统UIPageControl位置left&right对换设置问题 |
1.2.4 | * 支持系统UIPageControl位置设置,其属性pageControlPosition * 公开pageControl及customPageControl两个控件,方便控制及自定义 |
1.2.3 | * 支持本地图片显示及与网络图的混合显示 * 增加图片contentMode的控制 |
1.2.2 | * 标题显示两行文字 |
1.2.1 | * 支持不同类型的PageControl * 支持修改PageControl颜色,当前显示颜色等(文件注释) |
1.1.1 | * 支持Storyboard |
pod 'LLCycleScrollView'
let bannerDemo = LLCycleScrollView.llCycleScrollViewWithFrame(CGRect.init(x: 0, y: bannerDemo.ll_y + 205, width: w, height: 200))
// 是否自动滚动
bannerDemo.autoScroll = true
// 是否无限循环,此属性修改了就不存在轮播的意义了 😄
bannerDemo.infiniteLoop = true
// 滚动间隔时间(默认为2秒)
bannerDemo.autoScrollTimeInterval = 3.0
// 等待数据状态显示的占位图
bannerDemo.placeHolderImage = #UIImage
// 如果没有数据的时候,使用的封面图
bannerDemo.coverImage = #UIImage
// 设置图片显示方式=UIImageView的ContentMode
bannerDemo.imageViewContentMode = .scaleToFill
// 设置滚动方向( vertical || horizontal )
bannerDemo.scrollDirection = .vertical
// 设置当前PageControl的样式 (.none, .system, .fill, .pill, .snake)
bannerDemo.customPageControlStyle = .snake
// 非.system的状态下,设置PageControl的tintColor
bannerDemo.customPageControlInActiveTintColor = UIColor.red
// 设置.system系统的UIPageControl当前显示的颜色
bannerDemo.pageControlCurrentPageColor = UIColor.white
// 非.system的状态下,设置PageControl的间距(默认为8.0)
bannerDemo.customPageControlIndicatorPadding = 8.0
// 设置PageControl的位置 (.left, .right 默认为.center)
bannerDemo.pageControlPosition = .center
// 背景色
bannerDemo.collectionViewBackgroundColor
// 添加到view
self.addSubview(bannerDemo1)
// 模拟网络图片获取
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + .seconds(2)) {
bannerDemo.imagePaths = imagesURLStrings
}
示例代码见ViewController.swift
LvJianfeng, coderjianfeng@foxmail.com
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型