I have a UITableViewController with a UISearchDisplayController (and UISearchBar) that is contained in a UINavigationController as the root element. Is it possible to configure it so the UISearchBar appears in place of the UINavigationBar? I don’t think hiding the navigation bar will work, a the next screen (pushed on) requires it to be visible (and this will create a strange animation glitch).
I’m basically going for a screen like the App Store search tab.
I’ve uploaded a sample screenshots of how it looks now:


Assign yourself as the delegate of the UINavigationController and implement
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated.Then use the passed in navigationController to hide the navigation bar.
[navigationController setNavigationBarHidden:YES animated:animated]Edit: Come to think of it, it would be better to pass the animated value into
-setNavigationBarHidden:animated:as well. Code updated.