I want specific RGB hex color for most of the buttons for my iPad Application.
What I have done is:
I have implemented UIButton
Subclass in my project which emulates the required background color, text color & border for buttons - and then I use it everywhere in my project where I need UIButton
.
My UI/UX designer do not provide PNGs instead he insist that I imitate the same color web site buttons are having with Hex codes. I am more of a background PNGs fan.
Now, relation of this question to programming as you might wonder is that, I am accessing .layer.borderWidth
& .layer.borderColor
property in Subclass which eventually gets used everywhere.
So, is this approach doing any good to the Application instead of using background PNGs?
Note (if relevant): All the buttons are of same size.