In my iPhone application, the default orientation throughout the app is Landscape mode. I wanted to hide the status bar, so I used [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
in the appDelegate. But the status bar is hidden only in the first splash screen, and in the view controller it leaves a white space in the top and in the all other view controllers it is leaving a white space in the bottom. I used following methods to solve the issue, but didn't work.
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
In the info.plist Status bar is initially
hidden = YES
Set the status bar is equal to
None
in the interface builder.Added
[self.view setNeedsLayout];
[self setWantsFullScreenLayout:YES];
Still its not fixed. Any idea? Please help.