Don’t get me wrong. I love the Cocoa and iOS frameworks, but seriously, how could Apple still not have a method that returns color based on hex code. Web designers use them a lot, especially in CSS. And so when those designers pass the specs on to us developers, we always have to go through the process of calculating the RGB values.
Well enough of that, here is a category for UIColor which adds a class and instance method that returns a color based on its hex code.