title: uitableview headerViewForSection: always returns nil
body: <p>I have a table with custom header views that no matter when, or what value I choose for section, I always get nil value. I have another table with the same problem.</p>
  
  <p>I can see the header views if I print the value of [tableview subviews], but I don't know why the method won't return anything.</p>
  
  <p>What I am trying to do is to get an activityIndicator that is in the headerview and start it or stop it with a method call.</p>
  
  <p>The headers are always painted ok, but I can't get a reference back to it. Also, calling <code>headerViewForSection:</code> doesn't call the delegate method, is that normal?</p>
  
  <p><code>footerViewForSection:</code> has the same problem</p>
  
  <p>Some code:</p>
  
  <pre><code>- (UIView*) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
  
      NSArray* objs = [[NSBundle mainBundle] loadNibNamed:@"iPadTableCells" owner:nil options:nil];
      UIView* header = [objs objectAtIndex: 0];
  
      UIActivityIndicatorView* activityIndicator = (UIActivityIndicatorView*) [header viewWithTag:5];
      [activityIndicator startAnimating]
  
      return header;
  
  }
  </code></pre>
  
  <p>from any method:</p>
  
  <pre><code>    UIView* headerView = [tableview headerViewForSection: section];  //returns nil
  
      if (headerView) {
          UIActivityIndicatorView* activityIndicator = (UIActivityIndicatorView*)[headerView viewWithTag: 5];
          [activityIndicator stopAnimating];
      }
  </code></pre>