wangrui460 / Wrcyclescrollview
Licence: mit
Swift 自动无限轮播用这个就够了 swift 4
Stars: ✭ 153
Labels
Projects that are alternatives of or similar to Wrcyclescrollview
Zybannerview
简单易用, 显示内容定制性强的可循环轮播控件. 可以实现类似淘宝商品详情中侧拉进入详情页的功能.
Stars: ✭ 370 (+141.83%)
Mutual labels: cycle
Pyaf
PyAF is an Open Source Python library for Automatic Time Series Forecasting built on top of popular pydata modules.
Stars: ✭ 289 (+88.89%)
Mutual labels: cycle
Create Cycle App
Create Cycle.js apps with no build configuration.
Stars: ✭ 238 (+55.56%)
Mutual labels: cycle
Cycleviewpager2
使用 ViewPager2 实现无限轮播效果,可以用来实现 banner 以及上下滚动文字广告等。Implementing android cycle viewPager with ViewPager2
Stars: ✭ 76 (-50.33%)
Mutual labels: cycle
Redux Cycles
Bring functional reactive programming to Redux using Cycle.js
Stars: ✭ 755 (+393.46%)
Mutual labels: cycle
directed graph
Dart implementation of a directed graph. Provides algorithms for sorting vertices, retrieving a topological ordering or detecting cycles.
Stars: ✭ 37 (-75.82%)
Mutual labels: cycle
Infinitecycleviewpager
Infinite cycle ViewPager with two-way orientation and interactive effect.
Stars: ✭ 5,720 (+3638.56%)
Mutual labels: cycle
annotated
Schema generation using annotated entities and mappers
Stars: ✭ 19 (-87.58%)
Mutual labels: cycle
Smkcyclescrollview
SMKCycleScrollView - An awesome advertisement cycleScrollView
Stars: ✭ 11 (-92.81%)
Mutual labels: cycle
Yjbannerview
【抱歉,暂时不提供开源】A very popular and highly customized banner view, 无限循环滚动轮播图BannerView、焦点图, 支持Cocoapods 及 Carthage. 支持完全自定义
Stars: ✭ 506 (+230.72%)
Mutual labels: cycle
Tycyclepagerview
a simple and usefull cycle pager view ,and auto scroll banner view(轮播图) ,include pageControl for iOS,support Objective-C and swift
Stars: ✭ 1,548 (+911.76%)
Mutual labels: cycle
Txscrolllabelview
🌭TXScrollLabelView, the best way to show & display information such as adverts / boardcast / onsale e.g. with a customView.
Stars: ✭ 714 (+366.67%)
Mutual labels: cycle
强烈推荐使用:WRNavigationBar 超简单!!! 一行代码设置状态栏、导航栏按钮、标题、颜色、透明度,移动等
#####Requirements
- iOS 8+
- Xcode 8+
Demo
demo列表
知乎日报
本地图片轮播
网络图片轮播
StoryBoard创建
不无限轮播
不显示pageControl
Installation
手动拖入 将 WRCycleScrollView 文件夹拽入项目中即可使用
How To Use
var cycleScrollView:WRCycleScrollView?
let height = 520 * kScreenWidth / 1080.0
let frame = CGRect(x: 0, y: 150, width: kScreenWidth, height: height)
// 可加载网络图片或者本地图片
let serverImages = ["http://p.lrlz.com/data/upload/mobile/special/s252/s252_05471521705899113.png", "http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007678060723.png", "http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007587372591.png", "http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007388249407.png", "http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007470310935.png"]
// 构造方法
cycleScrollView = WRCycleScrollView(frame: frame, type: .SERVER, imgs: serverImages)
view.addSubview(cycleScrollView!)
// 添加代理
cycleScrollView?.delegate = self
代理方法
extension ServerImgController: WRCycleScrollViewDelegate
{
/// 点击图片事件
func cycleScrollViewDidSelect(at index:Int, cycleScrollView:WRCycleScrollView)
{
print("点击了第\(index+1)个图片")
}
/// 图片滚动事件
func cycleScrollViewDidScroll(to index:Int, cycleScrollView:WRCycleScrollView)
{
print("滚动到了第\(index+1)个图片")
}
}
Contact me
- Weibo: @wangrui460
- Email: [email protected]
- QQ:1204607318
License
WRCycleScrollView is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].