I have a UIViewController
with two UITableViews
. The two tables are populated from different entities so I am using two fetched results controllers. When it comes to using the UITableViewDelegate/Datasource methods how do I designate which fetchedResultsController
to use?
How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar
The link above basically walks one through how to implement two FRC's but I'm new enough that I'm not sure how his method below works.
- (NSFetchedResultsController *)fetchedResultsControllerForTableView:(UITableView *)tableView
{
return tableView == self.tableView ? self.fetchedResultsController : self.searchFetchedResultsController;
}
Could someone spell this out for me? Specifically the return tableView == ....
line.
Thanks in advance!