title: UISearchBar jumps if pushed controller hides the tab bar
body: <p>My UI structure is as follow:</p>
  
  <p><code>UITabBarController</code> (<strong>TBC</strong>) -> <code>UINavigationController</code> (<strong>NC</strong>) -> <code>UITableViewController</code> (<strong>TVC</strong>)</p>
  
  <p>(for the simplicity of the example lets say the <strong>TBC</strong> has only one controller on its <code>viewControllers</code> array - the <strong>NC</strong>)</p>
  
  <p>My <strong>TVC</strong> has <code>UISearchBar</code> as its table header, and when the <strong>TVC</strong> appear I hide the search bar beneath the <strong>NC</strong> navigation bar by settings the table view content offset.  </p>
  
  <p>When user tap a cell in the <strong>TVC</strong> another view controller is pushed (<strong>VC</strong>) and hides the tab bar with <code>VC.hidesBottomBarWhenPushed = YES;</code>  </p>
  
  <p>Now there is a very annoying behavior that I dont know how to solve:<br>
  When the user tap the back button from <strong>VC</strong> back to <strong>TVC</strong>, the search bar jumps to be visible even if it was hidden (beneath the navigation bar) before the <strong>VC</strong> was pushed.  </p>
  
  <p>This effect happens only if the <strong>TVC</strong> doesn't have enough rows to fill the screen, its like the search bar force itself to be visible if there is a place on screen. but its really looks bad and buggy.  </p>
  
  <p>I uploaded a <a href="https://onedrive.live.com/?gologin=1&amp;mkt=en-US#cid=A058C132E2551E56&amp;id=A058C132E2551E56!105" rel="noreferrer">simple project</a> that demonstrates the problem, it has the same structure as I described in my question.<br>
  I added two bar buttons for your convenience, the "hide bar" button hides the search bar for you, and the "toggle count" button toggle the table view rows count to demonstrate that the issue happens only if there are few items.</p>