title: Is it possible to have a fixed uitableview Header while using sections?
body: <p>This question should not be mixed up with this <a href="https://stackoverflow.com/questions/17582818/uitableview-with-fixed-section-headers">here.</a>. These are two different things.</p>
  
  <p>There is a <a href="https://stackoverflow.com/questions/5441938/adding-ios-uitableview-headerview-not-section-header">good example</a> how to use a UITableView Header on SO.</p>
  
  <p>This all works fine and the main header is fixed on top as long as the style is set to <code>plain</code>.</p>
  
  <p>But if I use <code>sections</code>, the main header no longer sticks to top and moves away while scrolling to the bottom.</p>
  
  <p>In this method, I am returning the header for each section. </p>
  
  <pre><code>- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
  </code></pre>
  
  <p>In this method I am setting the height for the header section above:</p>
  
  <pre><code>- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
  </code></pre>
  
  <p>In this method, I am setting the real table header.</p>
  
  <pre><code>- (void)viewWillAppear:(BOOL)animated {
      ...
      self.recordTableView.tableHeaderView = headerView;
  }
  </code></pre>
  
  <p>Is it even possible having a fixed table header, while using sections?
  What is an alternative solution to this please?</p>