How to activate a UISearchDisplayController

We can do this two ways:

The benefit of version 2 is that if we perform it “in vision”, we can use the animated option and make it look all swish.

Version 2 of course also has a reverse with which we can deactivate the controller:

Note that this will not affect the UISearchBar associated with the search display controller; you need to deal with that separately.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.