Skip to content

Pircate/FSCycleScrollView

Repository files navigation

FSCycleScrollView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

FSCycleScrollView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FSCycleScrollView'

Usage

let cycleScrollView = FSCycleScrollView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 200))
cycleScrollView.automaticSlidingInterval = 5            // 自动滚动间隔
cycleScrollView.pageControl.isHidden = true             // 隐藏 page control
cycleScrollView.pageControl.hidesForSinglePage = true   // 只有一页的时候隐藏 page control
cycleScrollView.isInfinite = true                       // 是否无限轮播
cycleScrollView.placeholder = nil                       // 占位图片
cycleScrollView.dataSourceType = .onlyImage(images: []) // 只显示图片
cycleScrollView.dataSourceType = .onlyTitle(titles: []) // 只显示文本
cycleScrollView.dataSourceType = .both(items: [])       // 图片加文本

Author

gaoX, gao497868860@163.com

License

FSCycleScrollView is available under the MIT license. See the LICENSE file for more info.

About

FSPagerView 封装的轮播图控件

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published