I made a small project using Cordova, which worked well in iOS6. After upgrading to iOS7, the status bar will be displayed every time the App launches, and the status bar overlaps with the title bar of the App, which is very ugly, so I need to hide the status bar.

 

First, consider using Code, write the following Code in mainViewControoler. m:

But the test doesn’t work.

 

Try modifying the info.plist file, because the location of the info.plist may not be the same for each project, and it is best to search in the search box at the bottom. After adding the following two properties, the status bar is hidden when the App is launched.

 

 

References:

IOS7 Xcode how to hide the status bar

2, Status bar won’t disappear

3. Xcode Info.plist