Hooking It All Together

You have laid out a new scene, set up the connections, and added behaviors. Now you need to add the edit scene into the flow of the app. Hooking scenes together is a common task in development. As you will see, it is more than just pointing from one to another. There can be data sharing or other types of behaviors associated with movement. The first step in hooking it all together is to add a button to the add/view scene that transitions to the edit scene:

1. Open the Storyboard editor and move the gray first scene arrow back to the add/view scene.

2. Drag out a button and set the title to Edit. The best way to do this is double-clicking the “Button” text on the storyboard layout view to select the title text, and then ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.