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 items 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, you are going to add a UITableViewController to the storyboard and give it static content. Apple frequently changes the file templates, so it is possible that your UINavigationController’s rootViewController is not already a UITableViewController instance. Either way ...

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.