iPhone Development Color Chooser from HEX
So, as many of you iPhone Development people out there may know the UIColor users a 0-100 floating point number style input to achieve a custom colour in code. After some trawling the web tonight when I needed to match a specific colour and dynamically change a Buttons background tint or .tintColor depending on a boolean state (timed internet connection check
) I found this
Conversion example : – ( #662865
[UIColor colorWithRed:0.4 green:0.157 blue:0.396 alpha:1]
http://www.touch-code-magazine.com/web-color-to-uicolor-convertor/
No comments yet.