Search code examples
objective-ccocoa-touchuitableviewuisearchbaruisearchdisplaycontroller

How can I stop a UISearchDisplayController from updating as I type?


How can I stop a UISearchDisplayController from updating as I type? numberOfRowsInSection gets called many times as the user types.


Solution

  • You could change the UISearchBar's delegate to your view controller, and then only forward some messages to the UISearchDisplayController.