IOS7以下的版本中隐藏状态栏十分方便:
‐ (BOOL)prefersStatusBarHidden {
return YES;
}
说改info.plist的人是这样的:
You should add this value to plist: "View controllerbased status bar appearance" and set it to "NO". This would let you set the status bar to hidden mode and it's global not like other answers.
UPDATE: If you want that the status bar would be hidden on splash screen don't forget to mark "Hide during application launch" on target status bar options. Also, you can add "Status bar is initially hidden" to "YES" on the plist if you don't want to do it with code inside the app.