Changing tabs with UISearchController displayed seems to hose things
Changing tabs with UISearchController displayed seems to hose things
- Subject: Changing tabs with UISearchController displayed seems to hose things
- From: Rick Mann <email@hidden>
- Date: Thu, 12 Nov 2015 19:26:44 -0800
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@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden