iPhone - Remove status bar programmatically

前端 未结 6 1776
刺人心
刺人心 2021-01-02 09:17

I have made an app that implements the iPhone\'s camera. When the user finishes picking their image, the status bar reappears! How would I make sure that the status bar sta

6条回答
  •  余生分开走
    2021-01-02 09:42

    In iOS 7, there is a method on UIViewController, "prefersStatusBarHidden". To hide the status bar, add this method to your view controller and return YES:

    - (BOOL) prefersStatusBarHidden
    {
        return YES;
    }
    

提交回复
热议问题