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

人件(原书第3版)

人件(原书第3版)

[美] Tom DeMarco、[美] Timothy Lister / 肖然、张逸、滕云 / 机械工业出版社 / 2014-8 / 69.00元

在软件管理领域,很少有著作能够与本书媲美。作为经久不衰的畅销书,本书深刻地洞察到软件开发的最大问题不在于技术,而在于人。人的因素并不容易解决,一旦解决了,你将更有可能获得成功。 本书是软件管理领域的传奇经典,被誉为“对美国软件业影响最大的一本书”。全书从管理人力资源、创建健康的办公环境、雇用并留用正确的人、高效团队形成、改造企业文化和快乐工作等多个角度阐释了如何思考和管理软件开发的最大问题—......一起来看看 《人件(原书第3版)》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具