What is the difference between textFieldShouldendEditing and textfieldDidEndEditing, and when should each method be used?
What is the difference between textFieldShouldendEditing and textfieldDidEndEditing , and when should each method
Share
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.
textFieldShouldEndEditing:
textFieldDidEndEditing:
Discussion
This method is called after the text field resigns its first responder status. You can use this method to update your delegate’s state information. For example, you might use this method to hide overlay views that should be visible only while editing.
Implementation of this method by the delegate is optional.
site:apple.com textFieldShouldendEditing
textFieldShouldEndEditing
textFieldDidEndEditing