1

I have a Modal View Controller presented as a Form Sheet in Landscape on an iPad. When I dismiss the view, the view jumps to a different location, as in this thread:

A modal VC with a keyboard on landscape changes location when dismissed: Modal View Controller with keyboard on landscape iPad changes location when dismissed

The response to that thread is to call resignFirstResponder, however, you are not allowed to dismiss keyboards when using a Form or Page Sheet:

Modal Dialog Does Not Dismiss Keyboard

Has any one else had this problem? Is there a way to either force the keyboard to be dismissed or force the view into a nice position when it's being animated away?

Cheers, Nick.

Community
  • 1
  • 1
Nick Cartwright
  • 8,334
  • 15
  • 45
  • 56

1 Answers1

1

The keyboard will be removed only after the modal form is dismissed. Apple has the idea that if you are using modal form, then you'll need the keyboard for multiple fields therefore it shouldn't be removed.

Guy Ephraim
  • 3,482
  • 3
  • 26
  • 30
  • Thanks Guy - if this is the case then perhaps this should be closed & a bug raised with Apple in that a Modal VC needs it's keyboard dismissed before the window will animate out without glitches. – Nick Cartwright Sep 17 '10 at 15:10
  • Right, however if you do, you probably won't be the first, Apple insists that this is the way to go. – Guy Ephraim Sep 17 '10 at 15:31