You can cancel animation by subclassing UISearchDisplayController and adding this:
1 2 3 4 5 6 7 8 9 10 11 12
| - (void)setActive:(BOOL)visible animated:(BOOL)animated { if(self.active == visible) return; [self.searchContentsController.navigationController setNavigationBarHidden:YES animated:NO]; [super setActive:visible animated:animated]; [self.searchContentsController.navigationController setNavigationBarHidden:NO animated:NO]; if (visible) { [self.searchBar becomeFirstResponder]; } else { [self.searchBar resignFirstResponder]; } }
|