Back To Blog Posts
Using Hex Colors In Objective C
If you are coming from HTML/CSS and trying to design for the iPhone/iPad, one thing that you are going to want to do is define colors in Objective C using hex values from CSS. Here is the marco that can be used to do that.
Simply add the macro to your PCH file and then you can start using hexidecimal colors immediately as follows