How can i gather sent events from a UITextField in one place or am i forced to create outlets and actions for every single event i intend to use?

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.
If I got your question correctly you need to get the text from UITextField when this UITextField loose focus (user taps elsewhere). To achieve this you need:
file)
Implement in yourClassName.m file this method:
Any time user will press return button on keyboard your class will have a notification and call this method.
In case if you need to gather event from multiple UITextFields you can mark all your textField with specific tags and create one IBAction like this:
For different event types I can suggest to create different IBAction’s. If you do not need to change UITextField’s properties (e.g. font etc.) then you do not really need IBOutlets.
Hope that helps 🙂