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

Ext JS学习指南

Ext JS学习指南

(美)布莱兹、(美)拉姆齐、(美)弗雷德里克 / 孔纯、肖景海、张祖良 / 人民邮电出版社 / 2009-10 / 39.00元

《Ext JS学习指南》系统化地介绍了Ext JS的基础知识,从框架的下载安装到各种常用小部件的实例介绍,从如何自定义小部件到Ext JS代码复用和扩展机制,《Ext JS学习指南》覆盖了Ext JS知识的所有主要方面。作为Web 2.0时代企业应用的一把开发利器,Ext JS为企业应用开发的表现层实现提供了优秀的解决方案。 如果你掌握了HTML,并且了解一般的CSS和JavaScript的......一起来看看 《Ext JS学习指南》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

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

UNIX 时间戳转换