Get global tint color from code

fahu picture fahu · Oct 2, 2013 · Viewed 13.5k times · Source

Is there a way I can get the global tint color from my project by code? To avoid a misunderstanding I mean the global tint color, which i can set in the File Inspector.

Answer

Maximilian Litteral picture Maximilian Litteral · Oct 2, 2013

In the app delegate you can set it by

UIColor *globalTint = [[[UIApplication sharedApplication] delegate] window].tintColor;