title: How to get back textfield data from tableViewCell in objective c?
body: <p>I have two <code>tableViewControllers</code>, second tableViewController tableViewCell has <code>textField</code> and <code>imageView</code>, how can I get data from that <code>textfield</code> when I click <code>navigationBarBackButton</code> (I want to store that data in first <code>tableViewController</code>).</p>
  
  <pre><code>// code from second tableViewController...
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
     if (indexPath.row == 0) {
        UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cellID"];
  
        cell.textLabel.text = @"SIM Name";
        cell.detailTextLabel.text = @"AirTel";
        cell.imageView.image = [UIImage imageNamed:@"Star2.png"];
  
       return cell;
     }
  
     TableViewCell1 *cell1 = [tableView dequeueReusableCellWithIdentifier:@"cell1"];
     cell1.nameTextField.delegate = self;
  
  
     if (indexPath.row == 1) {
  
        NSArray *cell1XibRef = [[NSBundle mainBundle]loadNibNamed:@"TableViewCell1" owner:self options:nil];
        cell1 = [cell1XibRef objectAtIndex:0];
        cell1.imageView.image = [UIImage imageNamed:@"Con.png"];
        self.nameString = cell1.nameTextField.text;
  
        return cell1;
     }
  
    return nil;
  }
  
  - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
  
  return YES;
  }
  
  - (void)textFieldDidBeginEditing:(UITextField *)textField{
    //Whenever people start editing your textfield
  
      self.nameString = textField.text;
      NSLog(@"%@", self.nameString);
  
   }
  </code></pre>