I have a tab-based iPad app. The third tab has a UICollectionView in a UINavigationController, and can invoke a search feature. When the user taps the search button, I create a UISearchController, set it so the the searchResultsUpdater is the same UIViewController, and so it does not hide the nav bar during presentation. Then I present it.
This causes a top toolbar with a search UI embedded in it to slide down from the top of the screen, covering the UINavigationBar. If I then select a different tab, and return to the third tab, and then cancel the search, the UISearchController slides up off the top of the screen, and there is no UINavigationBar underneath it. Notably, neither viewDidLoad() nor viewWillAppear() are called when I return to the third tab. After canceling the search, if I switch away and back to the third tab, viewWillAppear() is called, and the UINavigationBar appears as expected. This seems very buggy, but I'm hoping someone knows how to work around it. Thanks. -- Rick Mann [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
