iphone - PresentModalViewController view is shifted with no animation -


I have a new view controller on the iPhone which I call using the following line of code:

  [self current model view controller: animated controller: no];  

It works great when the animation is turned on, but the problem I am looking for is a quick switch is that when I set the animation, then the whole scene is 20px correct (this Always in landscape mode) as if there is a status bar but in portrait mode !!

Yellow spot in this example is the new view controller.

I have tried this in a new project and it happens. It may be a bug, but can anyone be cured? Thank you

You should check the value of property for controller.view.fr , And make sure it's right. Most likely you will see that the origin.x value is 20. However, I am realizing why the frame has been animated.


Comments