does a modalviewcontroller resignFirstResponder of the parentviews subviews?
in order to recognize if a user jumps from editing one textField to another by just touching another one instead of hitting the return button i implemented a method which gets called with the event "Editing did end". i read this event also happens when, in this case a textField resignsFirstResponder.
Now whenever the user hase a multiple choice I present a modal View with a picker. I have the problem whenever there is a multiple choice and the user switches textFields without hitting re开发者_如何学Cturn this method gets called twice and I don know why!
is it possible that the modalviewcontroller resigns all FirstResponder of the parentView when it gets presented ?
you can say
[myTextField1 resignFirstResponder];
[myTextField2 resignFirstResponder];
[myTextField3 resignFirstResponder];
before presenting your controller.
but i have a feeling there could be a better way to solve this if i can understand your problem clearly.
精彩评论