作者:小豇豆和花椰菜 | 来源:互联网 | 2022-12-13 13:28
IhavethefollowingcodewhichworksperfectlyoniOS8:我有以下代码,在ios8上运行良好:-(BOOL)application:(U
I have the following code which works perfectly on iOS 8:
我有以下代码,在ios8上运行良好:
- (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:
但是,当我在ios9 beta 5 (XCode 7, beta 6)上运行相同的代码时,当显示UIActionSheet(或UIAlertController)时,会出现以下代码:
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?
如您所见,“取消”按钮不接受全局色调。这是ios9的已知问题,还是我漏掉了一些代码?
2 个解决方案