Entering the discussion late, but I think I can save others from trouble.
I have a VC a few taps in the NavController (let me call VC PARENT). Now I want to display a modal screen (BABY) with a hidden navigation bar and status. After much experimentation, I know this works ...
1) Since I represent CHILD VC by calling presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated in PARENT, the navigation bar is no longer involved (no need to hide it).
2) View in the strap CHILD VC size 320x480.
3) CHILD VC sets self.wantsFullScreenLayout = YES; in viewDidLoad
4) before representing the CHILD, hide the status bar using [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:YES];
5) release CHILD VC using the delegate protocol methods in PARENT and call [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:YES]; before dismissModalViewControllerAnimated:YES] to make sure the navigation bar is displayed in the correct place.
Hope this helps.
mputnamtennessee
source share