On iPad, how to prevent the modal presentation from moving to the keyboard?

On an iPad, I have a text box in modal; when I click on the text field to bring up the keyboard, the whole modal view will move up to have the smallest area covered by the keyboard.

I do not want this behavior, because the text field will not be covered by the keyboard anyway. How can I disable this behavior?

+7
source share
2 answers

As a return, you can create your own window and add your own view to it, rather than put your opinion in Apple-controlled management.

0
source

To do this, follow this scenario ..
add tag in the text box .. then in - (void) textViewDidBeginEditing: (UITextView *) textView set the condition, for example, if the text field tag does not match your predefined tag , than move the modal view up.
I hope this works.

0
source

All Articles