I have a navigation controller within one of the tabs in a tab bar.
Within the nav controller I have the root view.
I am presenting a modal view like this:
[self presentModalViewController:modalViewController animated:YES];
However, when I dismiss the view with:
[self dismissModalViewControllerAnimated:YES];
.. the original view gets moved up 20 pixels, so it is under the status bar. Is there a way to prevent this?
If you are using a tab bar, you should present your view from
UITabBarController, so that your tab’s content stays untouched: