我有以下代码,可以在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 myGlob
在iPhone和iOS 9.0中,我看到了一些奇怪的东西:全局色调与特定颜色之间的对比。
在AppDelegate中设置以下代码后,导航项的颜色将在显示警报后发生变化。
window!.tintColor = UIColor.greenColor()
// per docs "The tint color to apply to the navigation items and bar button items."
UINavigationBar.appearance().tintColor = UIColor.redColor()
UITa