Storyboard Global Tint UITabBar Tint changed in IOS 7.1

前端 未结 2 1331
北海茫月
北海茫月 2020-12-30 01:09

Have I overlooked something in just using the Global Tint to set the apps overall tint?

My App that worked in IOS 7.06 has suddenly changed today after IOS 7.1 Updat

相关标签:
2条回答
  • 2020-12-30 01:29

    Swift code that works under iOS 11 (in AppDelegate's didFinishLaunching):

    application.windows[0].rootViewController?.view.tintColor = UIColor.black
    
    0 讨论(0)
  • 2020-12-30 01:44

    This is a known bug in the 7.1 betas which was never fixed in the final release.

    Like you, I have had the same problem and had to set it manually as a fix.

    It is recommended that if you want to set a global tint color, to do so in -application:will/didFinishLaunchingWithOptions:. Alternatively, if you want specific colors for each view controller, to do so in prepareForSeque:.

    Personally I have tried setting it in -viewWillAppear:animated: in my UINavigationController root view and it appears to work fine.

    See the devforum thread here

    0 讨论(0)
提交回复
热议问题