I am currently using the following method to stop the cancel button item from showing up in the search bar. I have a custom UIButton that I would like to use in
UIButton
You can hide your cancel button using this
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { [searchBar setShowsCancelButton:NO animated:YES]; }