UITableViewControllers in Storyboards

When using a UITableViewController, you typically implement the appropriate data source methods to return the content of each cell. This makes sense when you have dynamic content – like a list of BNRItems that may change – but it is a lot of work when you have a table whose content never changes. Storyboards allow you to add static content to a table view without having to implement the data source methods.

To see how easy this is, we’re going to add a UITableViewController to the storyboard and give it static content. (Depending on a number of factors, the root view controller of the UINavigationController may already be a UITableViewController. If this is the case in your storyboard, go through the following ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.