Question

A quicky: is there a way to dismiss the keyboard and the searchDisplayController without animation?

I was able to do it when the user presses "Cancel", but when the user presses the black "window thingy" above search field (only visible while the user hasn't inserted any text), the animation always occurs, even when I change the delegate functions.

Is there a way to control this, or as an alternative, to disable the user to end searching by pressing the black window?

Thanks in advance.

Was it helpful?

Solution

You can manually de-activate the search display controller to avoid the animation:

[self.searchDisplayController setActive:NO animated:NO];

Try putting it in - (void)viewWillDisappear to see if that prevents the animation when navigating away from your table view.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top