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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:00:25+00:00 2026-05-27T01:00:25+00:00

I have 10 UITableViewCells in my UITableView . Each cell has a UITextField .

  • 0

I have 10 UITableViewCells in my UITableView. Each cell has a UITextField. They load fine, but I need a way to set each cell’s text to its associated string.

Is there a delegate of UITextField that I can use to do this, and how can I determine which textfield belongs to what NSString, etc?

Edit:

Here is a picture of my tableView. I want it to load text into each cell’s textfield from the server then the user can edit it. Or if there is no data on the server, the textfield will be blank and the user can add data and it will sync back.

I have created an NSString for each cell, such as temperatureString, pulseString, etc.

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-05-27T01:00:25+00:00Added an answer on May 27, 2026 at 1:00 am

    Edit: In respect to the new info this is my new solution

    So by the looks of it you are inserting UITextField into each cell, instead of setting the tag of each cell set the tag for each UITextField

    First Define your tags

    #define DESCRIPTIVE_TAG_VALUE_1 10
    #define DESCRIPTIVE_TAG_VALUE_2 11
    #define DESCRIPTIVE_TAG_VALUE_3 12
    ...
    

    Use these in your UITextField Delegate to determine which UITextField belongs to which NSString that is if you are syncing with each update, if your not. Then obtain a reference to the UITableView and retrieve each of the text values of each subview of a cell that has a tag equal to one of your defines (again in a switch statement).

    Once again in when working with iOS use tags they are your friends

    OR

    Also you said that you are holding a reference to each NSString, you could just hold a reference to each UITextField instead that way when you sync you just have to retieve from each of your UITextField references.

    But the Apple’s best practises say to exercise the use of unique tags when dealing with mutliple views. It’s really up to you

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

Sidebar

Related Questions

I have TableCellViewController for managing cells in my UITableView. Each cell has a label
I have a UITableView with a few UITableViewCell s. Each cell contains a UITextfield
I have a UITableView with 5 UITableViewCells . Each cell contains a UIButton which
I have a UITableView with custom UITableViewCells. Each cell asynchronously loads an image and
I have a UITableView with two sections. Each section has a few UITableViewCells .
I have a table view that has many cells. Each cell has its own
I have a UITableView with custom background images in each cell. The bottom cell
I have a UITableView where each cell is an image. Only one cell is
I have a custom UITableView using UITableViewCell s. Each UITableViewCell has 2 buttons. Clicking
I have a UITableView with about 20 cells, in each cell there are three

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.