I would like to define a color palette in one place and just use the links to it, so I can change the palette in this one place without touching all the interface elements to change the color.
To clarify, here is how I could achieve the same thing in android:
<resources> <color name="main_text">#ffffffff</color> </resources>
<TextView ... android:text="foobar" android:textColor="@color/main_text" />
In the iOS SDK, the user interface is usually not described by manually written xml. But I was wondering if there is a way to use some sort of color reference in IB, and then override the color later. (I don't need to see the final colors in the xcode preview.)
So far, the only solution I have found would be to use type tags: define a tag for each element, get them at runtime, apply to the correct class and start applying color. This is very cumbersome.
source share