views:

178

answers:

1

I wonder if there is a way to use constants in Interface Builder, in order to avoid manually setting the same color at different places for example (it could be a very tedious job sometimes...)

Currently I set the color in the code and use #define to setup the color, but obviously IB can't use #define...

A: 
richleland
Thanks for you answer. Actually, I would have liked to set the color in IB, not in the code (meaning that I want to avoid self.backgroundColor = myColor). But if I use a custom color from the color palette as you mention it, and if I want to modify in the future the percentage of blue of my color for instance, I still would have to do the change manually in IB everywhere the custom color is used... I'm keeping my #define solution for the moment, it saves me tedious refactoring time....
Unfalkster