All Projects → MQZHot → Zcycleview

MQZHot / Zcycleview

Licence: mit
This is a picture/text infinite-scroll library with UICollectionView, It can be very easy to help you make the banner you want 使用UICollectionView实现常见图片/文字无限轮播,支持自定义cell,自定义pageControl,以及轮播样式

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Zcycleview

ScrollAnimationShowcase
[ING] - UIScrollViewやUICollectionViewの特性を活用した表現サンプル
Stars: ✭ 15 (-95.3%)
Mutual labels:  uicollectionview, infinite-scroll
iOSEasyList
A data-driven UICollectionView and UITableView framework for building fast and flexible lists
Stars: ✭ 29 (-90.91%)
Mutual labels:  uicollectionview, infinite-scroll
react-bidirectional-infinite-scroll
Bidirectional infinite scroll written using react
Stars: ✭ 31 (-90.28%)
Mutual labels:  infinite-scroll
Wlemptystate
WLEmptyState is an iOS based component that lets you customize the view when the dataset of a UITableView or a UICollectionView is empty. We created a sample project with the WLEmptyState component to show how you can use it.
Stars: ✭ 305 (-4.39%)
Mutual labels:  uicollectionview
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (+829.47%)
Mutual labels:  uicollectionview
Vue Recyclist
Infinite scroll list for Vue.js with DOM recycling.
Stars: ✭ 259 (-18.81%)
Mutual labels:  infinite-scroll
Swiftdatatables
A Swift Data Table package, display grid-like data sets in a nicely formatted table for iOS. Subclassing UICollectionView that allows ordering, and searching with extensible options.
Stars: ✭ 287 (-10.03%)
Mutual labels:  uicollectionview
react-native-carousel
React Native carousel
Stars: ✭ 35 (-89.03%)
Mutual labels:  infinite-scroll
Ember Light Table
Lightweight, contextual component based table for Ember 2.3+
Stars: ✭ 310 (-2.82%)
Mutual labels:  infinite-scroll
Android Pagination With Recyclerview
Pagination (Endless or Infinite Scrolling) using RecyclerView's onScrollListener
Stars: ✭ 269 (-15.67%)
Mutual labels:  infinite-scroll
Cardslideview
一行代码实现ViewPager卡片效果,比ViewPager2更强大,底层同样是RecyclerView
Stars: ✭ 301 (-5.64%)
Mutual labels:  banner
Baraba
Make your UIScrollView scroll automatically when user is looking 👀 by tracking face using ARKit and AVFoundation
Stars: ✭ 268 (-15.99%)
Mutual labels:  uicollectionview
Bannerview
横幅广告图片轮播控件
Stars: ✭ 290 (-9.09%)
Mutual labels:  banner
WBListKit
A data-driven UICollectionView&UITableView framework for building fast and flexible lists by declarative syntax.
Stars: ✭ 32 (-89.97%)
Mutual labels:  uicollectionview
Togetherad
🔥持续更新。Android广告聚合:帮助 Android 开发者快速、便捷、灵活的接入国内多家主流安卓广告 SDK。广点通(优量汇)、穿山甲、百青藤(百度Mob)。开屏广告、Banner横幅广告、插屏广告、激励广告、原生信息流、全屏广告。
Stars: ✭ 305 (-4.39%)
Mutual labels:  banner
MultiSelect
swift
Stars: ✭ 12 (-96.24%)
Mutual labels:  uicollectionview
Wmzbanner
最好用的轻量级轮播图+卡片样式+自定义样式,链式编程语法(可实现各种样式的轮播图,大多需要的功能都有)(The best lightweight carousel + card style + custom style, chain programming syntax)
Stars: ✭ 266 (-16.61%)
Mutual labels:  banner
Uicollectionviewflexlayout
A drop-in replacement for UICollectionViewFlowLayout
Stars: ✭ 277 (-13.17%)
Mutual labels:  uicollectionview
Loopingviewpager
A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
Stars: ✭ 310 (-2.82%)
Mutual labels:  infinite-scroll
Wslwaterflowlayout
功能描述:WSLWaterFlowLayout 是在继承于UICollectionViewLayout的基础上封装的控件, 目前支持竖向瀑布流(item等宽不等高、支持头脚视图)、水平瀑布流(item等高不等宽 不支持头脚视图)、竖向瀑布流( item等高不等宽、支持头脚视图)、栅格布局瀑布流 4种样式的瀑布流布局。
Stars: ✭ 308 (-3.45%)
Mutual labels:  uicollectionview

ZCycleView

A picture/text infinite-scroll library with UICollectionView, It can be very easy to help you make the banner you want

使用UICollectionView实现常见图片/文字无限轮播,支持自定义pageControl,自定义文字样式,以及轮播样式

使用方法

let cycleView = ZCycleView(frame: frame)
cycleView.placeholderImage = UIImage(named: "placeholder")
cycleView.setUrlsGroup(["http://...", "http://...", "http://..."])
cycleView.delegate = self
view.addSubview(cycleView)

要显示网络图片,需要实现下面的代理方法。

你可以选择自己喜欢的图片加载库进行显示图片,例如Kingfisher或者SDWebImage

func cycleViewConfigureDefaultCellImageUrl(_ cycleView: ZCycleView, imageView: UIImageView, imageUrl: String?, index: Int) {
    imageView.sd_setImage(with: URL(string: imageUrl!), placeholderImage: cycleView.placeholderImage)
}

显示本地图片,需要实现下面的代理方法

func cycleViewConfigureDefaultCellImage(_ cycleView: ZCycleView, imageView: UIImageView, image: UIImage?, index: Int) {
    imageView.image = image
}

修改pageControl或者label的样式,你可以使用下面的代理方法

func cycleViewConfigureDefaultCellText(_ cycleView: ZCycleView, titleLabel: UILabel, index: Int) {
    titleLabel.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.6)
    titleLabel.textColor = .white
    titleLabel.font = UIFont.systemFont(ofSize: 13)
}

func cycleViewConfigurePageControl(_ cycleView: ZCycleView, pageControl: ZPageControl) {
    pageControl.pageIndicatorTintColor = UIColor.green
    pageControl.currentPageIndicatorTintColor = UIColor.red
}

自定义cell样式

@objc optional func cycleViewCustomCellIdentifier() -> String
@objc optional func cycleViewCustomCellClass() -> AnyClass
@objc optional func cycleViewCustomCellClassNib() -> UINib
@objc optional func cycleViewCustomCellSetup(_ cycleView: ZCycleView, cell: UICollectionViewCell, for index: Int)

联系方式

LICENSE

ZCycleView is released under the MIT license. See LICENSE for details.

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].