My controller main view call
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft animated:YES];
in it’s viewDidAppearmethod because the screen must be manually rotated for the user.
Everything works perfectly except when I put the app in background and I re-enter foreground on this screen: Then the navigationBar’s height become 32px.
If I comment the setStatusBarOrientation call, then no problem.
I’ve logged the navigationBar height in didEnterForeground method (after the super call), but it tells 44px. So I guess it would be resized after.
So I would like to know :
- If there was a way to prevent the navigationBar to be resized
- If no, what other callback method would come after the
didEnterForegroundone (viewWill/DidAppeardoes’nt)
Thanks !
After 4 months, I finally found a partial solution !
I found a good callback when a viewController (not app delegate) is re-entering foreground. With
NSnotificationCenterdon’t forget to remove