Access textfield.text for textfield inside a cell of tableView
<p>I am trying to extract the values inputted to a textfield. The problem is these textfields are defined programmatically in a cell of a tableview.</p>

<pre><code>-(void)viewDidDisappear:(BOOL)animated{
[super viewDidDisappear:(BOOL)animated];
NSUInteger numOfRows=[userControls count];
for (int i =0; i&lt;numOfRows; i++) {
    [self saveValueForRow:i];
}
</code></pre>

<p>}</p>

<pre><code>#pragma save defaults
- (void)saveValueForRow :(int)index {
    NSString *userDataString=userEntryField.text; //how to access each text field, as this currently just accesses the first one in the table
    NSLog(userDataString);
   [[NSUserDefaults standardUserDefaults] setObject:userDataString   forKey:[controlKeys objectAtIndex:index]];
}
</code></pre>

<p>My instinct was to collect all the data after the view disappears. But I don't know how to access each different text field in each different cell.</p>