All Projects → choiceyou → Fwcyclescrollview

choiceyou / Fwcyclescrollview

轮播控件:支持本地图片、网络图片、自定义视图,轮播分页控件有多重可选方案,轮播次数、间隔时间也可设置,更多配置请参考”可设置参数“。提供OC使用Demo。

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Fwcyclescrollview

Swiftmessages
A very flexible message bar for iOS written in Swift.
Stars: ✭ 6,363 (+10684.75%)
Mutual labels:  banner
Postcss Banner
PostCSS plugin to add text banner and footer to resulting file
Stars: ✭ 13 (-77.97%)
Mutual labels:  banner
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-38.98%)
Mutual labels:  pod
Numericaltextentry
An iOS library for beautiful number entry fields. iPad friendly. Written in Swift.
Stars: ✭ 16 (-72.88%)
Mutual labels:  pod
Volumebar9
A jailbreak tweak to change the stock volume HUD
Stars: ✭ 10 (-83.05%)
Mutual labels:  banner
Openshift Psap
Example roles and yaml files for performance-sensitive applications running on OpenShift
Stars: ✭ 20 (-66.1%)
Mutual labels:  pod
Kydrawercontroller
Side Drawer Navigation Controller similar to Android
Stars: ✭ 632 (+971.19%)
Mutual labels:  pod
Mialertcontroller
A simple fully customizable alert controller
Stars: ✭ 53 (-10.17%)
Mutual labels:  pod
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. 📂
Stars: ✭ 862 (+1361.02%)
Mutual labels:  pod
Viewpagerhelper
这个一个 viewpager/viewpager2工具类,能够帮你快速实现导航栏轮播图,app引导页,viewpager/viewpager2 + fragment;内置多种tab指示器,让你告别 viewpager 的繁琐操作,专注逻辑功能
Stars: ✭ 957 (+1522.03%)
Mutual labels:  banner
Gqanimation
几种常见的动画,如晴天,雨天,多云,雷阵雨,二维码扫描,脉冲等
Stars: ✭ 19 (-67.8%)
Mutual labels:  pod
Openebs
Leading Open Source Container Attached Storage, built using Cloud Native Architecture, simplifies running Stateful Applications on Kubernetes.
Stars: ✭ 7,277 (+12233.9%)
Mutual labels:  pod
Highlighter
🖍 Highlight whatever you want!
Stars: ✭ 909 (+1440.68%)
Mutual labels:  pod
Newpagedflowview
电影票卡片式无限自动轮播图
Stars: ✭ 819 (+1288.14%)
Mutual labels:  banner
Kubernetes
K8S Kubeadm和二进制部署高可用集群
Stars: ✭ 49 (-16.95%)
Mutual labels:  pod
Certified Kubernetes Security Specialist
Curated resources help you prepare for the CNCF/Linux Foundation CKS 2021 "Kubernetes Certified Security Specialist" Certification exam. Please provide feedback or requests by raising issues, or making a pull request. All feedback for improvements are welcome. thank you.
Stars: ✭ 691 (+1071.19%)
Mutual labels:  pod
Ios Imagezoomviewer
ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality.
Stars: ✭ 14 (-76.27%)
Mutual labels:  pod
Notificationbanner
Easy to use pop up notification banner for in app local notification.
Stars: ✭ 55 (-6.78%)
Mutual labels:  banner
Generator Buildabanner
Yeoman workflow to get a standard or DoubleClick banner started quickly.
Stars: ✭ 49 (-16.95%)
Mutual labels:  banner
Amgcalendarmanager
EventKit helper for Swift 3
Stars: ✭ 29 (-50.85%)
Mutual labels:  pod

IOS之轮播控件 -- OC/Swift4.0

Platform  Language  License

支持pod导入:

use_frameworks!
pod 'FWCycleScrollView'
注意:
1、如出现 [!] Unable to find a specification for 'FWCycleScrollView' 错误 或 看不到最新的版本,
  可执行 pod repo update 命令更新一下本地pod仓库。
2、use_frameworks! 的使用:
(1)纯OC项目中,通过cocoapods导入OC库时,一般都不使用use_frameworks!
(2)纯swift项目中,通过cocoapods导入swift库时,必须使用use_frameworks!
(3)只要是通过cocoapods导入swift库时,都必须使用use_frameworks!
(4)使用动态链接库dynamic frameworks时,必须使用use_frameworks!

更新记录:

1、v2.0.5:

  • 修复v2.0.4中设置自定义分页控件无效的问题;

可设置参数:

/// 本地图片
@objc public var localizationImageNameArray: [String]?
/// 网络图片
@objc public var imageUrlStrArray: [String]?
/// 预加载图片
@objc public var placeholderImage: UIImage?
/// 自定义UI等
@objc public var viewArray: [UIView]?

/// 是否自动轮播
@objc public var autoScroll = true
/// 自动轮播间隔时间
@objc public var autoScrollTimeInterval: TimeInterval = 5.0

/// 轮播图滚动方向
@objc public var scrollDirection: UICollectionViewScrollDirection = .horizontal
/// 轮播轮回次数(1个轮回指的是1组UI轮播完成)
@objc public var loopTimes = 100
/// 选中分页控件的颜色
@objc public var currentPageDotColor = UIColor.white
/// 未选中分页控件的颜色
@objc public var pageDotColor = UIColor.lightGray
/// 分页控件类型
@objc public var pageControlType: PageControlType = .classic
/// 自定义分页控件类型
@objc public var customDotViewType: FWCustomDotViewType = .hollow
/// 分页控件位置
@objc public var pageControlAliment: PageControlAliment = .center
/// 分页控件Insets值
@objc public var pageControlInsets: UIEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 0)
/// 分页控件默认距离的边距
@objc public var pageControlMargin: CGFloat = 10

/// 分页控件大小,注意:当PageControlType不等于自定义类型时,只能影响当前分页控件的大小,不能影响分页控件原点的大小
@objc public var pageControlDotSize: CGSize = CGSize(width: 10, height: 10)
/// 自定义分页控件,选中分页控件放大的倍数
@objc public var currentPageDotEnlargeTimes: CGFloat = 0.0

/// 某一项滚动回调
@objc public var itemDidScrollBlock: ItemDidScrollBlock?
/// 某一项点击回调
@objc public var itemDidClickedBlock: ItemDidClickedBlock?

简单使用:(注:可下载demo具体查看,分别有OC、Swift的demo)

/// 类初始化方法
///
/// - Parameter frame: FWCycleScrollView的大小
/// - Returns: self
@objc open class func cycleImage(frame: CGRect) -> FWCycleScrollView

OC:

NSArray *netAdArray = @[@"http://pic2.16pic.com/00/10/46/16pic_1046407_b.jpg",
                        @"http://pic.58pic.com/58pic/14/34/62/39S58PIC9jV_1024.jpg",
                        @"http://pic.qiantucdn.com/58pic/17/70/72/02U58PICKVg_1024.jpg",
                        @"http://pic.58pic.com/58pic/16/73/95/63E58PICQh7_1024.jpg"];
[FWCycleScrollView cycleImageWithImageUrlStrArray: netAdArray
                                 placeholderImage: [UIImage imageNamed:@"ad_placeholder"]
                                            frame: CGRectMake(0, 0, self.view.frame.size.width, 100)];

Swift:

let netAdArray = ["http://pic2.16pic.com/00/10/46/16pic_1046407_b.jpg",
                  "http://pic.58pic.com/58pic/14/34/62/39S58PIC9jV_1024.jpg",
                  "http://pic.qiantucdn.com/58pic/17/70/72/02U58PICKVg_1024.jpg",
                  "http://pic.58pic.com/58pic/16/73/95/63E58PICQh7_1024.jpg"]
FWCycleScrollView.cycleImage(imageUrlStrArray: netAdArray,
                             placeholderImage: UIImage(named: "ad_placeholder"),
                                        frame: CGRect(x: 0, y: 0, width: self.view.frame.width, height: 100))

效果:

结尾语:

  • 使用过程中发现bug请issues或加入FW问题反馈群:670698309(此群只接受FW相关组件问题);
  • 有新的需求欢迎提出;
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].