Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change global tint color - iOS7/iOS8

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.

like image 932
elGeekalpha Avatar asked Sep 23 '13 13:09

elGeekalpha


2 Answers

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]]; 
like image 83
Vinzzz Avatar answered Sep 21 '22 04:09

Vinzzz


[[UIView appearance] setTintColor:[UIColor greenColor]];

like image 21
carmen Avatar answered Sep 23 '22 04:09

carmen