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.

Edit: In respect to the new info this is my new solution
So by the looks of it you are inserting
UITextFieldinto each cell, instead of setting the tag of each cell set the tag for eachUITextFieldFirst Define your tags
Use these in your
UITextFieldDelegate to determine whichUITextFieldbelongs to whichNSStringthat is if you are syncing with each update, if your not. Then obtain a reference to theUITableViewand 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 eachUITextFieldinstead that way when you sync you just have to retieve from each of yourUITextFieldreferences.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