更改全局色调颜色 - iOS7 / iOS8 [英] Change global tint color - iOS7/iOS8
本文介绍了更改全局色调颜色 - iOS7 / iOS8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何通过代码更改 iOS7 / iOS8上的全局色调?我想更改使用此属性的多个对象,但不更改每个对象,这就是我想使用全局色调属性的原因。
How can we change the global tint color on iOS7/iOS8 by code? I want to change multiple objects that use this property, but not change each one, that's why I want to use the global tint property.
推荐答案
只需在应用程序委托中更改 UIWindow
的 tintColor
,它就会自动默认传递给它的所有 UIView
后代。
Simply change the UIWindow
's tintColor
in your application delegate, it's automatically passed as default to all its UIView
descendants.
[self.window setTintColor:[UIColor greenColor]];
这篇关于更改全局色调颜色 - iOS7 / iOS8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文