title: UISearchBar on UITableView strange offset issue
body: <p>I have a <code>UITableView</code> which has a <code>UISearchBar</code> subview. This is all on the view of a <code>UIViewController</code> along with a few other subviews (labels, text fields and such).</p>
  
  <p>The search bar and content offset of the table are acting quite strangely, but it seems dependent on the order in which these views are added to the main view in the xib. I created a sample project with just my table/search and a label in order to test, and the result is the same. When the table is added <em>after</em> the label, everything works fine:</p>
  
  <h1>Setup:</h1>
  
  <p><img src="https://i.stack.imgur.com/C9Qld.png" alt="table added after label"></p>
  
  <h1>Correct and Expected Result:</h1>
  
  <p><img src="https://i.stack.imgur.com/9vs2l.png" alt="Proper expected result"></p>
  
  <p><strong>However</strong>, if I simply change the order in which my 2 subviews sit on the main view (aka table added <em>before</em> the label) then weird things start happening.</p>
  
  <h1>Apparently bad setup:</h1>
  
  <p><img src="https://i.stack.imgur.com/M4HGd.png" alt="Table added before label"></p>
  
  <h1>Weird offset of Search Bar:</h1>
  
  <p><img src="https://i.stack.imgur.com/GGtc0.png" alt="wtf is this?!?!"></p>
  
  <p>I'm not changing anything else whatsoever, so why does Xcode seem to care which order these subviews are added to the main view?? If I scroll up on the "bad" table setup, the search bar disappears immediately at its top edge, but the table's content will continue to scroll up until it reaches the top of the frame that was set in the xib. Scroll back down and the search bar doesn't reappear until the strange lowered location. This is in Xcode 5.1.1, not the new beta. The result is the same with or without Autolayout turned on.</p>
  
  <p>Any idea why this is happening? Is this a bug, or am I missing something? (I didn't post any code because all I'm doing is setting the number of sections, rows, and setting the text on the cell. Not messing with content insets, offset, anything. I load the view from the app delegate as the root of a nav controller)</p>