2
votes

I have a search display controller. If the user scrolls the table view of the search display controller after entering text into the search text field, the keyboard disappears because the search display controller is resigning first responder. Is there a way to keep the keyboard there while scrolling is occurring?

1

1 Answers

2
votes

Give your UISearchBar a delegate (perhaps the same object that is the delegate of your UISearchDisplayController) and implement searchBarShouldEndEditing: to return NO in the circumstances that you do not want it to resign (for example, when mySearchDispController.searchResultsTableView.dragging is YES).