Chapter 9. Tables and navigation
This chapter covers
- Displaying data in single-column tables
- Adding, editing, and deleting rows
- Adding navigation to other scenes
- Passing data between scenes
Most useful apps display dynamic information in one form or another. If you have a list of items to display, Apple provides a convenient object for you to use called a table view.
In this chapter, you’ll create the first scene of the Bookcase app you’ve been working on. This scene will show a list of all the books the user enters into the app. When the user adds or edits a book record, they’ll navigate to the bookcase form you’ve worked on in previous chapters.
In this chapter, you’ll explore
- Table views and table view controllers—Table views manage a list of data and display it in a simple one-column table. Table view controllers are view controllers that contain a table and handle part of the boilerplate setup for you.
- Navigation controllers and navigation bars—You’ll use navigation controllers to navigate between scenes. By default, navigation controllers provide a navigation bar that indicates where you are in the app, gives you a back button for returning to the previous scene, and can be used for additional controls.
- Segues— The transition between two scenes is also known as a segue. You’ll use different kinds of segues to display view controllers in different ways.