Does a modalviewcontroller resignFirstResponder of the parentviews subviews?

Up vote 0 down vote favorite share g+ share fb share tw.

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 return 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? Iphone objective-c modalviewcontroller firstresponder parentviewcontroller link|improve this question edited May 17 '11 at 17:30 asked May 17 '11 at 17:19bllubbor168210 81% accept rate.

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.

No this is no what I want! Actually this is exactly what I do not want! Cause my methode gets called I do something and it should not be called again unless the user typed something in the textField.

If I call resignFirstResponder the method would be called again! – bllubbor May 17 '11 at 17:45 For text fields you are presenting modal controller with picker, you should return NO in textFieldShouldBeginEditing: method. So for such text fields, no keyboard will pop up.

– user745098 May 18 '11 at 7:07 that is not my problem. I do need the keyboard. Just wanted to know if is it possible that the modalviewcontroller resigns all FirstResponder of the parentView when it gets presented?

– bllubbor May 18 '11 at 16:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions