I have the same problem, any ideas?
Alejandra
Debug this by checking your view's frame in -viewWillAppear
, -viewDidAppear
, -viewWillDisappear
, and -viewDidDisappear
.
Also check the view's autoresizingMask
, and the parent view's autoresizesSubviews
property.
I'm not sure I see the value of setting up a navigation controller here. You could just present the ABUnknownPersonViewController
with [self presentModalViewController: unknownPersonView]
;. If you're doing it for the sake of picking up the visual navigation bar with the back button, then just add a nav bar and button to the unknown person view.
It seems like a mixed metaphor to be creating a UINavigationController
but then not using its usual navigation methods (e.g., pushViewController:animated:
and popViewControllerAnimated:
) and instead using the modal methods inherited from UIViewController
.
It seems that adding this line:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
in my viewWillAppear: made the view not to move when the modal view controller is dismissed. However now the initial position was already slightly dislocated to the bottom but fixed it by moving all the outles in IB to the top so it looks ok.