title: How to get textFields in custom UITableView
body: <p>Very beginner obj-c question.</p>
  
  <p>I have plain UITableView with two sections, but I am interested only in first section now. This section have four custom cells (inherited from standard UITableViewCell), and they have a UITextField's as a property. </p>
  
  <p>I need to improve custom Input Accessory View with buttons "Next", "Previous"(for switch between textFields in tableview) and "Done" (dismissimg of keyboard). <a href="http://uaimage.com/image/62f08045" rel="nofollow">http://uaimage.com/image/62f08045</a></p>
  
  <p>In -textFieldShouldReturn i set tags for textFields from 0 to 3. My next plan is to add textFields into NSMutableArray in -viewDidLoad and then just set and resign first responder for the textFields. Approximate code listing for "Next" button:</p>
  
  <pre><code>- (void) inputAccessoryViewDidSelectNext:(FDInputAccessoryView *)view {
      for (UITextField *textField in [self textFieldsArray]) {
  
          if ([textField isFirstResponder]) {
  
              [textField resignFirstResponder];
       UITextField *field = [[self textFieldsArray] objectAtIndex:textField.tag + 1];
              [field becomeFirstResponder];
          }
  
      }
  }
  </code></pre>
  
  <p>Questions:</p>
  
  <ul>
  <li>Is this a right way or maybe there is a better approach to solve problem?</li>
  <li>Do I need to tag textfields or use indexPath of cells in what they are built  in? (or what is the best to track textFields?)</li>
  <li>And the main question: what is the syntax to "get" textField from cell?</li>
  </ul>
  
  <p>Sorry for the dumb questions, I am a very beginner.</p>
  
  <p>Thanks,
  Alex.</p>