iPhone Development Color Chooser from HEX

iphone-color-pickerSo, 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]


No comments yet.

Leave a Reply