O'Reilly logo

Pro iOS Table Views and Collection Views: Using Swift 2 by Tim Duckett

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

Chapter    13

Static Tables

Many table views are built dynamically, populating instances of prototype cells on demand as the data is displayed. But that’s not the only way of building them; static table views can also be useful components of a user interface.

With a static table, you define the cells and their contents up front. This is useful in situations where you know the content to be displayed won’t change, such as when displaying a list of settings. Many parts of the built-in iOS Settings app are based on a static table view, as shown in Figure 13-1.

9781484212431_Fig13-01.jpg

Figure 13-1. A static table used to display the Display & Brightness controls in the Settings ...

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