Getting the Data Back

What you can’t do is close the editor, nor get your work back into the model. Up through iOS 5, the most straightforward way to get this done was to declare a @protocol in PRPasserEditController.h that PRPasserListController could implement. When the Cancel or Save button is pressed, the editor would use the delegate methods to signal the results to the list controller, its delegate.

But why do this, when Storyboard can eliminate the editor-side code entirely, and free the client from setting a delegate outlet and conforming to a strict API?

You can’t dig out of a view controller with an ordinary segue. If you control-dragged a segue from the Cancel button back to the PRPasserListController, you’d get a segue that creates ...

Get Xcode 5 Start to Finish: iOS and OS X Development 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.