I have this app compiled for iOS 6.0 running on iOS 7.
I am trying to get rid of the status bar and I am almost there.
I have added this to info.plist
View controller-based status bar appearance = NO
Status bar is initially hidden = YES
I have added this code to the rootViewController
- (BOOL)prefersStatusBarHidden
{
return YES;
}
Everything is fine. The app loads without the status bar but as soon as I present the UIImagePickerController from the rootViewController the status bar is back, even after the picker dismisses.
Yes, I have subclassed the UIImagePickerController and added the prefersStatusBarHidden to the class, just to see, but nothing changed.
How do I get rid of this abomination. Please save me.
EDIT: no,
[self setNeedsStatusBarAppearanceUpdate];
is not working