I have a standard table view, with a UISearchController implemented via a NIB. I want to mimic what happens when the user clicks "Cancel" in the search bar - the normal behaviour is that the search bar goes away and the table returns to its original state. Basically, I want to have the same happen when the user selects an item that appears in their search results.
I can't find anywhere the process of what happens when the user clicks "Cancel".