In my app I have a view that is a form that has quite a few inputs.
When the UITextField calls textFieldDidBeginEditing, it checks the tag and will bring up a UIPopoverController or the keyboard depending on the what the input is meant to be.
If the keyboard is up, I need it disappear when the user presses a textfield that brings up the popover. However I cannot make it disappear, I have tried every way to get rid of the keyboard but it just stays there. I have tried:
- calling
resignFirstResponderintextFieldDidEndEditing - calling
[self.view endEditing:YES]intextFieldDidEndEditing - calling
resignFirstResponderAND[self.view endEditing:YES]intextFieldDidBeginEditingchecking for the previous tag is equal to a keyboard input text field.
Any ideas would be great.
I have ripped it out and and put it in a example project if anyone wants to see the exact behaviour. http://dl.dropbox.com/u/61692457/KB_Test.zip