O'Reilly logo

iOS® 8 for Programmers: An App-Driven Approach with Swift™, Third Edition by Abbey Deitel, Harvey M. Deitel, Paul J. Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.6.8 UITableViewDelegate Methods

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required