I just want to enable/disable the status bar per view controller (some view full screen, some not)
I've been several times through all the post related to the status bar 20 pixels issue, but still have the problem, especially on iOS5.0 (some trick worked on older iOS version):
Here is the problem definition:
I use
[[UIApplication sharedApplication] setStatusBarHidden:YES]
to hide the status barI always have the 20 pixel height white empty area if I do this
I've try to enable/disable the navigation bar to force a layout, this does not works on iOS 5:
[self.navigationController setNavigationBarHidden:NO animated:NO];
[self.navigationController setNavigationBarHidden:YES animated:NO];I've try to manually reset the view frame size, no change
self.view.frame=CGRectMake(0, 0, 320, 480);
I've tried to change manually the navigation container view:
self.navigationController.frame=CGRectMake(0, 0, 320, 480);
All the view are of course 480 pixels height
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
And also design view according to the statusbar's hidden status ie. If statusbar is hidden I design my View with no statusbar in it. :) – Wolvorin Aug 9 at 9:37