UIColor
-
Create an UIColor object based on a hex string
Declaration
Swift
convenience init(hexString: String)
Parameters
hexString
a hex string describing a color
-
Method that returns an UIColor in a hex string
Declaration
Swift
func toHexString() -> String
Return Value
UIColor hex String