Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default tint color in Xcode interface builder?

How does one change the global default tint color in Xcode interface builder?

enter image description here

like image 324
mindbomb Avatar asked Aug 03 '15 19:08

mindbomb


2 Answers

In the File inspector tab of the Utility panel, the right one, you can find controls about size classes, auto layout and the global tint of your storyboard.

enter image description here

like image 92
Marco Boschi Avatar answered Nov 14 '22 05:11

Marco Boschi


Interface Builder Way: Select the Storyboard or Xib file you want to set the default tint on.

Then in Utilities on the first tab File Inspector look for the Interface Builder Document section and you will see a Global Tint like the image below shows.

(not enough reputation to post images)

enter image description here

Programmatically:

Obj-C: [[[[UIApplication sharedApplication] delegate] window] setTintColor:[UIColor orangeColor]];

Swift: UIWindow(frame: UIScreen.mainScreen().bounds).tintColor = UIColor.orangeColor()

like image 6
joe g Avatar answered Nov 14 '22 04:11

joe g