D
D
Dmitry Zamula2014-08-15 16:32:04
Objective-C
Dmitry Zamula, 2014-08-15 16:32:04

How to programmatically reload searchResultsTableView?

The thing is, I have a tableView filled with data, I need to search for data that is not in this table. The search takes place using the RESTful API, i.e. via HTTP, but the problem is that when I enter the search text into the searchBar, it sends an HTTP request, and immediately reloads the searchResultsTableView without waiting for a response. For solution I have to programmatically reload searchResultsTableView when getting response from server, but I can't do that, view code

[[_searchController searchResultsTableView] reloadData];

does not work. How can the problem be solved?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question