Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

diskhub

macrumors newbie
Original poster
Dec 1, 2014
1
0
Hi all,
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
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.