I have an iOS 7 application in Xcode 5.0 that exhibits strange behavior when I click on the search bar ( UISearchBar ).
My application has a navigation controller and a tab bar controller. Here is an example of what my Main.Storyboard looks like:
[Navigation Controller] -> [Tab Bar Controller] -> [Tab Item
When I launch my application, I see Tab Item 1 with a UISearchBar , as shown in the screenshot below:

When I click on the UISearchBar , the search bar slides at the top of the screen, but the navigation bar does not hide, and the view does not "slide up." This causes the application to look like this:

When I remove the Tab Bar Controller from the storyboard and connect the Navigation Controller directly to Tab Item #1 , the navigation bar hides as expected.
How to make the navigation bar hide when I click on the search bar? For an example of the functionality I'm looking for to play, click the search bar on the Contacts tab of the IOS7 Phone app by default.
source share