Hide Status Bar from iPhone application

7 Solutions Collect From Internet About “Hide Status Bar from iPhone application”

iOS 7

In your Info.plist file add key View controller-based status bar appearance with value NO. And, add key Status bar is initially hidden with value YES.

To hide the status bar after the app has completely launched, change it programmatically by adding this line to your app delegate’s applicationDidFinishLaunching method:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

If you set animated to YES then the status bar will disappear by fading out. One question, why do you want to delete the status bar?

in your “*project_name*-Info.plist” file, add a key named “Status bar is initially hidden” and then set the value to “YES”. that will always hide the status bar.

if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
// iOS 7
[self prefersStatusBarHidden];
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
} else {
// iOS 6
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];

// Add this Method
- (BOOL)prefersStatusBarHidden
return YES;

Have you tried this:
click on .xib file -> attribute inspector -> change ‘Status Bar’ to ‘None’
(refer attached image)
enter image description here

Open your application Info.plist file and add the following lines:


Please add this to your view controller

- (BOOL)prefersStatusBarHidden {
    return YES;