PresentModalViewController problem.

Posted by james.ingham on Stack Overflow See other posts from Stack Overflow or by james.ingham
Published on 2010-05-15T00:45:16Z Indexed on 2010/05/15 0:54 UTC
Read the original article Hit count: 543

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.

alt text

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about presentmodalviewcontrolle