O'Reilly logo

Xcode 7 Essentials - Second Edition by Jayant Varma, Brett Ohland

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

Static table views

Table views can be complicated so let's start with the simplest example: a static table view.

In this chapter, we're going to create an app that showcases each of these advanced views. For this, we're going to use a static table view as the main navigation for the app.

To start off, let's create a new project called Showcase that uses the Single View Controller template. Delete the ViewController.swift file. Open up Main.storyboard in IB and delete the initial view in the storyboard. We're simply removing as much pre-generated code as possible:

Static table views

Drag a Table View Controller object onto the canvas from the object library. Make it the ...

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