When we add some text to the uisearchbar, we see a cross on the right hand side of it. When we click on this, the text in the uisearchbar gets cleared. Here’s an image that shows the cross.
What i need to do is, i need to know how the event that would respond to this cross (when clicked).
When the user clicks on this cross, i need to print a NSLog(@"Cross clicked");
How can i do this programatically ?
Try looking in the
UISearchBarDelegatedocumentation: