title: UITableView scrolls itself
body: <p>I've a weird problem with a UITableView. At the top of the tableview is a UISearchBar that I hide at viewDidLoad with</p>
  
  <pre><code>self.tableView.contentOffset = CGPointMake( 0, self.searchBar.frame.size.height );
  </code></pre>
  
  <p>Everything works fine, if the UITableView has enough cells, so that is scrollable. However, if there are only a few cells, sometimes my tableview scrolls itself to the bottom. It happens when I interact with the cells (theres a button on the contentview) or if I load another modal viewcontroller. </p>
  
  <p>I suspect that Autolayout has something to do with it, but I don't really know where I should start looking. </p>
  
  <p>Here are two screenshots to illustrate my problem. </p>
  
  <p>This is the tableview at viewDidLoad. </p>
  
  <p><img src="https://i.stack.imgur.com/mGqLn.png" alt="enter image description here"></p>
  
  <p>This is my tableview after the unwanted scrolling occurs: </p>
  
  <p><img src="https://i.stack.imgur.com/6OaQO.png" alt="enter image description here"></p>