How can I create a UIColor
from a hexadecimal string format, such as #00FF00
?
转载于:https://stackoverflow.com/questions/1560081/how-can-i-create-a-uicolor-from-a-hex-string
How can I create a UIColor
from a hexadecimal string format, such as #00FF00
?
转载于:https://stackoverflow.com/questions/1560081/how-can-i-create-a-uicolor-from-a-hex-string
There is no builtin conversion from a hexadecimal string to a UIColor
(or CGColor
) that I'm aware of. However, you can easily write a couple of functions for this purpose - for example, see iphone development accessing uicolor components