I have a UISearchDisplayController and UISearchBar hooked up to my ViewController via Outlets from my nib.
I\'d like to hide the cancel button so that the user never
Similar to Nimrod's answer, you can also subclass UISearchDisplayController and implement the setActive:animated: method:
UISearchDisplayController
setActive:animated:
- (void)setActive:(BOOL)visible animated:(BOOL)animated { [super setActive:visible animated:animated]; self.searchBar.showsCancelButton = NO; }