Friday, 6 September 2013

how to check if focus switches from one text view to another

how to check if focus switches from one text view to another

I've got 2 UITextFields. I can detect when the user in inside either of
them with:
textFieldDidBeginEditing:(UITextField *)textField
Which works great. But i want the textfields to animate out when the user
is not inside either of them. Currently I'm calling:
(void)textFieldDidEndEditing:(UITextField *)textField
However, this is called even if i switch from on textfield to the other.
Is there a better way to call do this?

No comments:

Post a Comment