This must be trivial, but I can\'t find how you\'re supposed to dismiss a UISearchController programmatically?
Note that it\'s the new UISearchController (introduced
Did you have this problem when you try to dismiss search controller after segueing to another view? I have encountered this problem too. I think you might want to use
self.definesPresentationContext = true
in the view controller that presents the UISearchController as per this post UISearchController not dismissed when View is pushed. It works for me.