user4951
user4951

Reputation: 33070

How to Force UISearchDisplayController to Update

I am creating a search controller and I want to do autocomplete.

It's fine.

However I got data from several sources. First I got data from local cache. Then I load data from the web.

So when we finish downloading data we want to make the searchcontroller to reload it's table incorporating new data.

How do we do that?

Upvotes: 1

Views: 1986

Answers (1)

Martin R
Martin R

Reputation: 539705

You can just call reloadData on the search display controller's table view:

[self.searchDisplayController.searchResultsTableView reloadData];

Upvotes: 8

Related Questions