16
Passing Data between View Controllers
In the previous chapter, you configured the JournalListViewController
class, the view controller for the Journal List screen, to display journal entries from a structure containing sample data in a table view.
In this chapter, you’ll learn how to pass data from one view controller to another. You’ll start by implementing a view controller for the Add New Journal Entry screen, then add code to pass data from the Add New Journal Entry screen to the Journal List screen. Next, you’ll learn how to remove journal entries while you’re on the Journal List screen. After that, you’ll learn about text field and text view delegate methods, and finally, you’ll pass data from the Journal List screen to the Journal ...
Get iOS 17 Programming for Beginners - Eighth Edition 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.