title: Activating search bar doesn't hide navigation bar
body: <p>I have an iOS 7 application in XCode 5.0 that exhibits some strange behavior when tapping the search bar (<code>UISearchBar</code>).</p>
  
  <p>My application has a Navigation Controller, and a Tab Bar Controller. Here is an example of what my Main.Storyboard looks like:</p>
  
  <pre><code>[Navigation Controller] -&gt; [Tab Bar Controller] -&gt; [Tab Item #1]
                                      |
                                      -------------&gt; [Tab Item #2]
  
  Each [] is a view controller
  </code></pre>
  
  <p>When I launch my application, I see the <code>Tab Item 1</code> with the <code>UISearchBar</code> as shown in the screenshot below:</p>
  
  <p><img src="https://i.imgur.com/aOM0nN4l.png" alt="one"></p>
  
  <p>When I tap the <code>UISearchBar</code>, the search bar slides up to the top of the screen, but the Navigation Bar does not hide, and the view does not "slide up". This causes the app to look like this:</p>
  
  <p><img src="https://i.imgur.com/KLGlio5l.png" alt="two"></p>
  
  <p>When I delete the <code>Tab Bar Controller</code> from the storyboard and connect the <code>Navigation Controller</code> directly to <code>Tab Item #1</code> the Navigation Bar hides as expected.</p>
  
  <p>How can I make the Navigation Bar hide when tapping the Search Bar? For an example of the functionality I am looking to reproduce, click the search bar under the "Contacts" tab of the default iOS7 "Phone" application.</p>