Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:27:55+00:00 2026-06-03T00:27:55+00:00

How can i gather sent events from a UITextField in one place or am

  • 0

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?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:27:57+00:00Added an answer on June 3, 2026 at 12:27 am

    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:

    1. Declare your class as (in yourClassName.h
      file)
    2. Implement in yourClassName.m file this method:

      - (void)textFieldDidEndEditing:(UITextField *)textField {
          NSString *someStringOrWhateverYouNeed = textField.text;   
      }
      

    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:

    - (IBAction)getTextFieldEvent:(id)sender {
        UITextField *currentTextField = (UITextField *)sender;
        switch (currentTextField.tag) {
            case 1:
                // some code here for textField with tag = 1
                break;
            case 2:
                // some code here for textField with tag = 2
                break;
            case 3:
                // some code here for textField with tag = 3
                break;
            default:
                // some default code here
                break;
        }
    }
    

    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 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From what I can gather: NT's KeAcquireSpinLock is equivalent to spin_lock_bh : the one
I'm trying to create a system in PHP/Zend that can gather emails from various
numpy's ndarray class is defined as class ndarray(__builtin__.objects) From what I can gather, __builtin__.objects
I'm not experienced with cURL at all, but from what I can gather, it's
Parameter passing techniques: From what I can gather on these two techniques. Call By
I need a script that can gather folders/files information from large drives (600GB to
When is the apropriate time (part of code) that i can gather information from
From what I can gather it appears that this might be because my ListView
From what I can gather, there are three categories: Never use GET and use
From what I can gather of how to use BGL in order to invoke

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.