Color text of status bar in XCode 6-b3 (Swift)

后端 未结 5 2057
闹比i
闹比i 2021-02-01 06:32

I\'ve try to modify status bar color text but no one answer from this thread doesn\'t work. Any especially for XCode 6?

I\'ve tried insert:

override func         


        
5条回答
  •  抹茶落季
    2021-02-01 07:10

    In your Info.plist you need to define View controller-based status bar appearance to any value.

    enter image description here

    If you define it YES then you should override preferredStatusBarStyle function in each view controller.

    If you define it NO then you can set style in AppDelegate using

    UIApplication.sharedApplication().statusBarStyle = .LightContent

提交回复
热议问题