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

  • Home
  • SEARCH
  • 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 8363793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:16:19+00:00 2026-06-09T12:16:19+00:00

I have a tableview with customcells with textfields in it. I am facing a

  • 0

I have a tableview with customcells with textfields in it. I am facing a peculiar problem now:

  1. When I tap on first row textfield, -beginEditing gets called.
  2. Now I change the value and tap on second row textfield. So, the -didEndEditing of first row gets called. In this didEnd, I have some parsing methods which are called in some other class. But they are not executed now. Right after the didEnd, -beginEditing of second row text is called. After that the parsing happens. Till now, it is fine.
  3. When the parsing is finished, objects from parsing is set in other classes,the flow should stop here, but I don’t know from where and why, The -didEndEditing for the second row gets called ! Also, though any resignfirstresponder is not written anywhere, the keyboard gets dismissed !

Any clue why is this happening and how to solve it ?

  • 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-09T12:16:21+00:00Added an answer on June 9, 2026 at 12:16 pm

    This is the way Apple designed the system – all developers have to deal with it (right or wrong). The key is that you are given the “textField” property so you know WHICH one of the textFields is sending the delegate messages.

    The solution is to use one or more mutable dictionaries (or some data structure) to keep state for each individual textField. You can have a primary dictionary that uses the textField object as the key, then for each textField a dictionary that has the current state, and any other info you want to retain about it.

    You can probably hack a less elegant but easier to code solution to. In any case, there is overlap on these messages and there is not way to avoid it.

    EDIT: use the tag as the key, or create a non-retained NSValue pointer object, but don’t use the text field itself.

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

Sidebar

Related Questions

I have dynamic number of textfields in my tableview, I put each textfield into
I have a tableview that fill with custom cells,, Now I want to increase
I have tableview, where create new rows and set them layout manually. In every
I have TableView. My datasource is SQLite database. I'm trying to count a number
I have a tableView with a few sections and I have it set for
I have a tableView that present a list of Books, each of the table
I have a TableView with 10 sections that are loaded from a plist file
I have a TableView associated to a TreeView. Each time a node in the
I have a tableview and an array source. When I init array in viewDidLoad
i have a tableView with 3 cells. i want to change .detailTextLabel of that

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.