I have a UISearchDisplayController that shows the cancel button. I would like to call a method when a user clicks the cancel button. Is there a way to do this?
You can use the following searchbar delegate method,
- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar
{
// DO ur operations
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With