title: Objective-C: Get text field values of each table row
body: <p>I have a table view with customs cells. Each cell got two text fields. Below the table is a button. I have a "buttonPressed" action in the table view controller. How can I get the text field values of each table row in this method?</p>
  
  <p>Here is the custom cell header file:</p>
  
  <pre><code>...
  
  @interface CustomCell : UITableViewCell
  @property (weak, nonatomic) IBOutlet UITextField *name;
  @property (weak, nonatomic) IBOutlet UITextField *age;
  
  @end
  </code></pre>
  
  <p>And in the table view controller I have this method:</p>
  
  <pre><code>- (IBAction)saveBtnPressed:(id)sender{
      // Store the text field values of each row in an array here
  }
  </code></pre>
  
  <p>Can someone help me?</p>