Change global tint color - iOS7/iOS8

elGeekalpha picture elGeekalpha · Sep 23, 2013 · Viewed 40.7k times · Source

How can we change the global tint color on iOS7/iOS8 by code? I want to change multiple objects that use this property, but not change each one, that's why I want to use the global tint property.

Answer

Vinzzz picture Vinzzz · Sep 23, 2013

Simply change the UIWindow 's tintColor in your application delegate, it's automatically passed as default to all its UIView descendants.

[self.window setTintColor:[UIColor greenColor]];