UIColor
extension UIColor
-
颜色hex值转颜色,如果hex值去除头部符号后不满6位,返回默认色-白色
Declaration
Swift
public convenience init(hexString: String, alpha: CGFloat = 1.0)
Parameters
hexString
hex值
alpha
透明度
LTXiOSUtils Docs (74% documented)
extension UIColor
颜色hex值转颜色,如果hex值去除头部符号后不满6位,返回默认色-白色
Swift
public convenience init(hexString: String, alpha: CGFloat = 1.0)
hexString
|
hex值 |
alpha
|
透明度 |