I'm doing the following code to make a system-wide theme change to my app for button colors:
UIWindow *window = [[[UIApplication sharedApplication] windows] lastObject];
window.tintColor = [UIColor themeColorNamed:@"barAndButtonTextColor"];
The question is, how do I turn it back to the default color? I have tried this with no luck:
window.tintColor = nil;
When I try to get the default UIColor when the app is initially loading and store it, it's coming back as nil
in my AppDelegate:
UIColor *myColor = window.tintColor;
Any ideas on how I can solve this? I don't want to hardcode the color because who knows what could change in future iOS versions.