iOS UI 视图 ROStorageBar

码农软件 · 软件分类 · 高级UI组件(Advanced) · 2019-07-12 05:59:07

软件介绍

ROStorageBar 是一个库,能够提供简单的方法来创建类似 iTunes Usage Bar 的 UIView。

Example

也可以在栏的下方添加文字。

ExampleWithCaptions

用法:

override func viewDidLoad() {
super.viewDidLoad()
storageBar.add(0.2, title: "Apps", color: UIColor(hex:"#FFABAB"))
storageBar.add(0.15, title: "Documents", color: UIColor(hex:"#FFD29B"))
storageBar.add(0.21, title: "Photos", color: UIColor(hex:"#DDEBF9"))
storageBar.add(0.3, title: "Movies", color: UIColor(hex:"#c3c3c3"))
// Or if you want to use directly the struct to add an item
storageBar.addStorageBarValue(ROStorageBarValue(value: 0.6, title: "Backups", color: UIColor(hex:"#A8DBA8")))
storageBar.unit = "GB"
storageBar.displayTitle = false
storageBar.displayValue = false
storageBar.displayCaption = true
storageBar.titleFontSize = 10.0
storageBar.valueFontSize = 10.0
var numberFormatter = NSNumberFormatter()
numberFormatter.maximumFractionDigits = 2
numberFormatter.minimumIntegerDigits = 1
storageBar.numberFormatter = numberFormatter
}

本文地址:https://codercto.com/soft/d/9940.html

Effective JavaScript

Effective JavaScript

David Herman / Addison-Wesley Professional / 2012-12-6 / USD 39.99

"It's uncommon to have a programming language wonk who can speak in such comfortable and friendly language as David does. His walk through the syntax and semantics of JavaScript is both charming and h......一起来看看 《Effective JavaScript》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具