I would like to know how to hide or not display the UISearchBar cross that appears in the textField fo the UISearchBar
UISearchBar
textField
I have
Try this:
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { UITextField *textField = [searchBar valueForKey:@"_searchField"]; textField.clearButtonMode = UITextFieldViewModeNever; }