Search code examples
iosobjective-cxcodeuinavigationbaruinavigationitem

UINavigationBar disappears in iOS 11


I am trying to make my iOS app design looking like iOS 11 standard apps.I added UISearchController in UINavigationBar.Search is working good, but when user selects cell and goes to destinationViewController the UINavigationController disappears.Here is the screenshots : how navigation looks like in root and disappeared navigation in destinationVC

What can cause this problem?

NOTE:If I don't use search and just select cell the destinationVC will be normal with Navigation, BackButton and Tittle.


Solution

  • I had a similar problem and added:

    self.searchController.hidesNavigationBarDuringPresentation = NO;