I have the following code which works perfectly on iOS 8:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// some app initialization code comes here
// ...
// set the global tint color - works great on iOS 8!
[[UIView appearance] setTintColor:[self myGlobalTintColor]];
}
However, when I run the same code on iOS 9 beta 5 (XCode 7, beta 6) the following appears when UIActionSheet (or UIAlertController) is displayed:
As you can see, the "Cancel" button does not accept the global tint color. Is this a known issue with iOS 9, or am I missing some code?
UIActionSheet
is deprecated as of iOS 8.3. From the docs:UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead
UIAlertController
tinting is not working properly in iOS 9 GM, see this radar.