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.
Dinesh reddy chennuru
source share