The UITableViewDelegate
methods (Fig. 8.17) were first introduced in Chapter 4. Here we discuss only the highlighted Core Data features that Xcode added to these methods (and our changes) for managing the interactions between the data model and the UITableView
.
153 // UITableViewDelegate methods 154 // callback that returns total number of sections in UITableView 155 override func numberOfSectionsInTableView( 156 tableView: UITableView) -> Int { 157 return self.fetchedResultsController.sections?.count ?? 0 158 } 159 160 // callback that returns number of rows in the UITableView 161 override func tableView(tableView: ...
No credit card required