Hide Status Bar In iOS 8 app

后端 未结 7 1043
悲哀的现实
悲哀的现实 2020-12-07 12:57

I have tried

[[UIApplication sharedApplication] setStatusBarHidden:YES]; 

This does nothing.

And I have looked in my Info.pli

7条回答
  •  执笔经年
    2020-12-07 13:32

    You can add that row to your Info.plist file if it isn't there. Just go to the project in Xcode, go to the "Info" section, and hover over one of the existing rows. A "+" button should appear, allowing you to add a line and input "View controller-based status bar appearance".

提交回复
热议问题