Change global tint color - iOS7/iOS8

后端 未结 7 2017
暖寄归人
暖寄归人 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:32

    There are two ways to change your global tint color. As many mentioned above you could change self.window.tintColor in -application:didFinishLaunchingWithOptions:.

    More elegant way, in my opinion, is to set Global Tint in File Inspector in your Storyboard while nothing is selected. This way your -application:didFinishLaunchingWithOptions: is cleaner.

提交回复
热议问题