iOS 7 status bar back to iOS 6 default style in iPhone app?

前端 未结 25 861
终归单人心
终归单人心 2020-11-22 05:48

In iOS 7 the UIStatusBar has been designed in a way that it merges with the view like this:

\"GUI

25条回答
  •  渐次进展
    2020-11-22 06:33

    SOLUTION :

    Set it in your viewcontroller or in rootviewcontroller by overriding the method :

    -(BOOL) prefersStatusBarHidden
        {
            return YES;
        }
    

提交回复
热议问题