How can I change the global tint color programmatically?

jimbob picture jimbob · Oct 28, 2013 · Viewed 10.7k times · Source

My project needs to switch between 2 different global tint values. How can I do this programmatically?

Answer

Leo Natan picture Leo Natan · Oct 28, 2013

Change the tint color of the UIWindow of the application. You can either use the [[UIApplication sharedApplication] keyWindow] but better is to use [[UIApplication sharedApplication] delegate].window.