• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Changing tabs with UISearchController displayed seems to hose things
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Yet another autolayout question
  • Next by Date: Re: Yet another autolayout question
  • Previous by thread: Re: Yet another autolayout question
  • Next by thread: Full Screen and weird grey bar
  • Index(es):
    • Date
    • Thread