Found a solution!
I set the property to plist, but still got the status bar after pushing the view controller onto the navigation bar stack or opening UIImagePickerController: (I am using Xcode 4.2 (SDK 5.0) and iOS 5.0.1).
Here (put the code in every view controller that you don't need so that the status bar is visible):
Set self.wantsFullScreenLayout = YES; in
- (id)initWithNibName: (NSString*)nibNameOrNil bundle: (NSBundle*)nibBundleOrNil
call
[[UIApplication sharedApplication] setStatusBarHidden: YES withAnimation: UIStatusBarAnimationNone];
in
- (void)viewWillAppear: (BOOL)animated
Then it works if the controllers are pressed through the navigation stack, and also using the UIImagePickerController (both removed or canceled).
Hope this helps.
source share