I have a UIViewController embedded in a popover. This controller has two subviews, a
UINavigationBar and a
MapView. I try to implement the new search Controller i.e.
UISearchController as UISearchDisplayController is deprecated in iOS8.
When I click in the search bar (displaying two scopes), everything is all right, and the navigation bar is still visible. But when I start typing in the search bar, the navigation bar and the keyboard disappear, replaced by a dim map view. I tried to add
self.searchController.hidesNavigationBarDuringPresentation = NO; in the
updateSearchResultsForSearchController: method as well as
searchBarShoulBeginEditing: method, but got no result. (note that the controller
self.definesPresentationContext = YES;)
Any idea to force navigation being displayed anytime?