转:UITextField的键盘在 "form sheet" style的 model view controller中不会自动消失

转:UITextField的键盘在 "form sheet" style的 model view controller中不会自动消失

创建:2012.03.29
转: http://stackoverflow.com/questions/8379205/uitextfields-keyboard-wont-dismiss-no-really

The Apple docs describe this exception:

On the iPad, if a view controller modally presents its view using the "form sheet" style, the keyboard, once shown, is not hidden until the user taps the dismiss key or the modal view controller is programmatically dismissed. The purpose of this behavior is to avoid excessive animations as a user moves between views that are largely, but not entirely, text fields.

Which happens to apply here (modal form sheet on iPad). It's apparently just not possible to dismiss the keyboard in this case. Super. :\


+++++

你可能感兴趣的:(转:UITextField的键盘在 "form sheet" style的 model view controller中不会自动消失)