Hi all,
I have set a searchResultsController:UITableViewController to the initWithSearchResultsController of a UISearchController.
I wish to return the result to the searchResultsController but it doesn't appear even if I could see that it went into
when I am in Debug.
How am I able to have the searchResultController appear on top of the existing tableView (like an overlay).
fyi: If i set to initWithSearchResultsController:nil, I am able to use self.tableView reloadData to make my searchResults appear.
However if i set initWithSearchResultsController:searchResultsController, I tried searchResultsController.tableView reloadData and it does not work.
Regards,
CC
I have set a searchResultsController:UITableViewController to the initWithSearchResultsController of a UISearchController.
Code:
UITableViewController *searchResultsController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain];
self.searchController = [[UISearchController alloc] initWithSearchResultsController:searchResultsController];
...
I wish to return the result to the searchResultsController but it doesn't appear even if I could see that it went into
Code:
- (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath
How am I able to have the searchResultController appear on top of the existing tableView (like an overlay).
fyi: If i set to initWithSearchResultsController:nil, I am able to use self.tableView reloadData to make my searchResults appear.
However if i set initWithSearchResultsController:searchResultsController, I tried searchResultsController.tableView reloadData and it does not work.
Regards,
CC