Getting Started with MVC and Table Views
In the previous chapter, you modified the Journal List screen, the Add New Journal Entry screen, and the Journal Entry Detail screen to match the app tour shown in Chapter 10, Setting Up the User Interface. You have completed the initial UI for the JRNL app, and that concluded Part 2 of this book.
This chapter begins Part 3 of this book, where you will focus on the code that makes your app work. In this chapter, you will learn about the Model-View-Controller (MVC) design pattern and how the different parts of an app interact with one another. Then, you’ll implement a table view programmatically (which means implementing it using code instead of storyboards) using a playground, to understand how table views work. Finally, you’ll revisit the table view you implemented on the Journal List screen, so you can see the differences between implementing it in a storyboard and implementing it programmatically.
By the end of this...