PresentModalViewController problem.
- by james.ingham
I have a new view controller on the iPhone which I call using the following line of code:
[self presentModalViewController:controller animated:NO];
This works great if animation is on, but I am looking to have an instant switch. The problem is when I set animation to NO, the whole view shifts 20px to the right (it is always in landscape mode) as if there is a status bar but in portrait mode!?
In this example the yellow space is the new view controller.
I've tried this in a new project and the same thing happens. It may be a bug but does anyone have a fix? Thanks