I have a program that displays a table with just 1 Cell row with the customer’s information to be keyed in using 2 textFields. (Shown below)

The user is able to click on the Addition sign to add a new row to their interests.
When the user selects the Main Category, the Sub Category should be auto filled with information.
My problem is, when i have say 2 rows of cells, I’m unable to auto populate the second subCategory with the selection from the mainCategory because I have no idea how to identify them.
I’ve implemented both the UITableView/UIPickerView delegates in this view.
Use the convenient
tagattribute of the text fields. You can set these in Interface Builder inside Xcode to distinguish between your two fields.Now you can identify the particular row and its index path like this, say, in
textField:didBeginEditing:The trick is that the text field is a subview of a view called
contentViewwhich is part of everyUITableViewCell, which again is a subview of the cell itself.