November 2013
Intermediate to advanced
576 pages
19h 3m
English
Integrating the table view and fetched results controller is just a matter of updating the table view’s datasource and delegate methods to use information from the fetched results controller. In ICFMovieListViewController, the fetched results controller tells the table view how many sections it has:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return [[self.fetchedResultsController sections] count];}
The fetched results controller tells the table view how many rows are in each section, using the NSFetchedResultsSectionInfo protocol:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger ...
Read now
Unlock full access