title: UITableView Scroll to section
body: <p>Is it possible to scroll to a section instead of a row? If so how?</p>
  
  <p>Btw. I am using a method to remove the floating headers.</p>
  
  <p>Here is the code that I use to move to the selected sections first row.</p>
  
  <pre><code>if (self.openSectionIndex != NSNotFound) {
      [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:section] atScrollPosition:UITableViewScrollPositionTop animated:YES];
  }
  </code></pre>
  
  <p>this is the code to remove the floating headers</p>
  
  <pre><code>- (void)scrollViewDidScroll:(UIScrollView *)scrollView
  {
      if (self.openSectionIndex != NSNotFound) {
          if (scrollView.contentOffset.y&lt;=DEFAULT_HEADER_HEIGHT&amp;&amp;scrollView.contentOffset.y&gt;=0) {
              scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
          } else if (scrollView.contentOffset.y&gt;=DEFAULT_HEADER_HEIGHT) {
              scrollView.contentInset = UIEdgeInsetsMake(-DEFAULT_HEADER_HEIGHT, 0, 0, 0);
          }
      }
  }
  </code></pre>
  
  <p>This is somehow what I want but I would rather also show the header. </p>
  
  <p>Right now the header is hidden offscreen in the top.</p>