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 8056127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:36:46+00:00 2026-06-05T08:36:46+00:00

I have a few UITextFields (within UITableViewCells) on my UIView with a Save UIButton.

  • 0

I have a few UITextFields (within UITableViewCells) on my UIView with a “Save” UIButton. I want to do some basic validation on the UITextFields when the user clicks the “Save” button.

I have overridden textFieldDidEndEditing to save each of my UITextField data to an instance variable; however, if a user clicks the save button before either clicking the “Return” button of the UIKeyboard or clicking on another UITextField the data in my last UITextField is never saved to my instance variable and validation always fails.

I am looking for a way to trigger an “onBlur” (I know that’s a JS thing)-type event to save my string in UITextField to my instance variable.

I’ve looked through the UITextFieldDelegate Protocol and I do not see anything like this.

Is there a method I may be missing?

  • 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-05T08:36:48+00:00Added an answer on June 5, 2026 at 8:36 am

    to trigger textFieldDidEndEditing on your UITextField, you will need to call

    [_txt resignFirstResponder];
    

    were _txt is your UITextField

    Please note that if you dont have a reference to _txt and you need to find the first responder in order to resign it
    You could use the solution from this question Get the current first responder without using a private API

    Then instead of calling

    [_txt resignFirstResponder];
    

    you would call

    [self.view findAndResignFirstResponder];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIScrollView with a few UITextFields on it. When the user edits
I have few inline sql statements with some arrays and if loops. I want
I have a few UITextFields and I would like the user to be able
I have few nested DIVs at page. I want to add event only for
I have few small basic problems : How to format : int i =
I have few buttons of which each button is assigned a class with a
I have few questions, I want to show the alert window on my Update
I have few Vaadin tabs one of them is displaying an table and some
I have a UITable containing some customs UITableCells. Those cells contain a few UILabels
i have few variables like this: self.lamp_1 self.lamp_2 self.lamp_3 self.lamp_4 and now i want

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.