Reader small image

You're reading from  iOS 17 Programming for Beginners - Eighth Edition

Product typeBook
Published inOct 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781837630561
Edition8th Edition
Languages
Tools
Right arrow
Author (1)
Ahmad Sahar
Ahmad Sahar
author image
Ahmad Sahar

Ahmad Sahar is a trainer, presenter, and consultant at Tomafuwi Productions, specializing in conducting training courses for macOS and iOS, macOS Support Essentials certification courses, and iOS Development courses. He is a member of the DevCon iOS and MyCocoaHeads online communities in Malaysia and has conducted presentations and talks for both groups. In his spare time, he likes building and programming LEGO Mindstorms robots.
Read more about Ahmad Sahar

Right arrow

Passing data from the Add New Journal Entry screen to the Journal List screen

As shown in the app tour in Chapter 10, Setting Up the User Interface, the Add New Journal Entry screen allows the user to enter data to create a new journal entry. To do so, the user will click the + button in the top-right corner of the Journal List screen to display the Add New Journal Entry screen. The user will then enter the details for the new journal entry. Clicking the Save button will dismiss the Add New Journal Entry screen and a new row containing a table view cell is added to the table view on the Journal List screen. The table view cell will display the photo, date, and title of the newly added journal entry.

For this to work, you’ll implement the prepare(for:sender:) method for the view controller managing the Add New Journal Entry screen. This method is triggered when you go from one view controller to another. With this method, you’ll create a new journal entry using the...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
iOS 17 Programming for Beginners - Eighth Edition
Published in: Oct 2023Publisher: PacktISBN-13: 9781837630561

Author (1)

author image
Ahmad Sahar

Ahmad Sahar is a trainer, presenter, and consultant at Tomafuwi Productions, specializing in conducting training courses for macOS and iOS, macOS Support Essentials certification courses, and iOS Development courses. He is a member of the DevCon iOS and MyCocoaHeads online communities in Malaysia and has conducted presentations and talks for both groups. In his spare time, he likes building and programming LEGO Mindstorms robots.
Read more about Ahmad Sahar