Possible Duplicate:
Assign a method for didEndOnExit event of UITextField
How can I add didEndOnExit to a UITextField in pure code rather than IB?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming your talking about
textFieldDidEndEditing:ortextFieldShouldReturn:. You would implement the method in your view controller, and set the text fieldsdelegatetoselflike so:Then, in your header file in the
@interfaceyou can specify that you are aUITextFieldDelegatelike this:UITextField Reference
UITextFieldDelegate Reference
Edit (as per your comment, this should work):