objective c - Is there a simple way to detect if a UISearchBar is exiting "Search Mode"? -


I am trying to set up a UISearchBarDelegate

My first attempt to clear search results SearchBarShouldEnditing: was called, but I came to know that it is called when scrolling through search results, which does not have time to get rid of them in the array.

My next attempt is to search BARCancelButtonClicked: - But this is not the case if a search bar is empty and it's not about taping at the bottom given place (where a deeply visible view of the table view is visible) .

How do you know if the search results return cells to regular table-visual cells?

Thanks for any help with this.

You can see which table is requesting cell cells SearchDisplayController.resultsTableView is that Your search results request cells. Just check it in cellularoutExpath


Comments