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
I managed to hide the "Cancel" button by subclassing UISearchBar and override this method:
UISearchBar
-(void)layoutSubviews{ [super layoutSubviews]; [self setShowsCancelButton:NO animated:NO]; }