Say I have a searchDisplayController. When I click on the searchbar, 3 things happen
Keyboardshow up- Cancel button show up
- A black transparent layer show up. This will sometimes be replaced by some table.
If I do [searchBar resignFirstResponder] the keyboard is hidden. Good. However, the black transparent layer and the cancel button is still there.
It’s as if the searchdisplaycontroller still think that I am still using that searchbar. How to tell the that I am done?
Clicking that black transparent layer will tell searchDisplayController we’re done. How to achieve that same effect.
Try calling: