Set the default style, color, and font size for the xcode project

The application I'm working on has a specific color scheme, so I was wondering if it is possible to set the default background color, text color and font size so that every time I create a new view or label in Interface Builder I don’t need to change all of these options.

+3
source share
2 answers

As in iOS 5, there is a UIAppearance protocol, which is implemented by all standard interface elements. Using the "View Proxy", you can set the appearance for ALL objects of this type in this application. More information can be found in the incredibly useful and informative session of WWDC'12 on "Advanced appearance settings on iOS"

+4
source

How to simply create a DanFViewController (subclassed from UIViewController) that already has a specific background color, text color, font size, etc., and then deduce all your custom views from it?

This is what I do in my applications where clients expect a certain look at all kinds.

+1
source

All Articles