November 2018
Intermediate to advanced
404 pages
10h 16m
English
First of all, create a new segue by Ctrl + dragging from the table view component to the Navigation Controller. Name the segue EditEntry and specify the kind of attribute to be Show:

In the MainScreenViewController class, add the following code to the prepare(for segue: sender:) function to tell EntryDetailsViewController about the EditEntry segue:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "NewEntry" { let navigationController = segue.destination as! UINavigationController let controller = navigationController.topViewController as! EntryDetailsViewController controller.delegate ...Read now
Unlock full access