Modal View Controller with keyboard on landscape iPad changes location when dismissed

Posted by Roi on Stack Overflow See other posts from Stack Overflow or by Roi
Published on 2010-05-24T16:07:37Z Indexed on 2010/05/24 16:11 UTC
Read the original article Hit count: 390

I present a modal view controller on my on my iPad with UIModalPresentationFormSheet presentation style and UIModalTransitionStyleCoverVertical transition style. The Modal View Controller contains a UIWebView with some TextFields on it. When the user taps one of the text fields the keyboard comes up.

I have noticed that in landscape mode after the keyboard is shown, if I try to dismiss the modal view controller with animation the view changes its position from the center of the screen to the left side just before the animation starts..

This happens only if the keyboard is up and only in landscape mode on the iPad. If the user closes the modal view without pressing on any text field this doesn't happen.

Anyone familiar with this strange behavior?

© Stack Overflow or respective owner

Related posts about animation

Related posts about ipad