[翻译] KYCircularProgress
翻译
2023-09-14 08:57:16 时间
KYCircularProgress
Flexible progress bar written in Swift.
用Swift语言编写的灵活的进度条控件。
Features
Gradation Color 渐变的颜色 Progress Closure 进度渐变 UIBezierPath Progress Bar 支持贝塞尔曲线Demo
Requirement
iOS7.0+ Xcode6.0.1+Usage 使用
Create KYCircularProgress 创建KYCircularProgress
var circularProgress: KYCircularProgress! = KYCircularProgress(frame: self.view.bounds)
Gradation Color 渐变的颜色
// support Hex color to RGB color circularProgress.colors = [0xA6E39D, 0xAEC1E3, 0xE1A5CB, 0xF3C0AB]
Progress Closure 实时进度
circularProgress.progressChangedClosure({ (progress: Double, circularView: KYCircularProgress) in println("progress: \(progress)") })
UIBezierPath Progress Bar 贝塞尔曲线的bar
// create "Star progress bar" let path = UIBezierPath() path.moveToPoint(CGPointMake(50.0, 2.0)) path.addLineToPoint(CGPointMake(84.0, 86.0)) path.addLineToPoint(CGPointMake(6.0, 33.0)) path.addLineToPoint(CGPointMake(96.0, 33.0)) path.addLineToPoint(CGPointMake(17.0, 86.0)) path.closePath() circularProgress.path = path
Installation 安装
Add KYCircularProgress.swift in your project. 将KYCircularProgress.swift添加到你的项目当中即可
相关文章
- [翻译] VENCalculatorInputView
- [翻译] AJProgressPanel
- [翻译] WPAttributedMarkup
- [翻译] AAPullToRefresh
- [翻译] INSSearchBar
- [翻译] ABPadLockScreen
- [翻译] popping
- [翻译] About Core Image
- TBS 手册 --phpv 翻译
- SAP Spartacus i18n 的文本,和翻译相关的话题:internationalization
- ML之XGBoost:XGBoost参数调优的优秀外文翻译—《XGBoost中的参数调优完整指南(带python中的代码)》(三)
- 【第6篇】SSD论文翻译和代码汇总
- Boost.Asio c++ 网络编程翻译(14)
- 爬虫百战穿山甲(2):百度翻译爬虫