Change global tint color - iOS7/iOS8

后端 未结 7 1957
暖寄归人
暖寄归人 2020-12-23 15:40

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

7条回答
  •  攒了一身酷
    2020-12-23 16:31

    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]];
    

提交回复
热议问题