Skip to Main Content
Xcode 5 Start to Finish: iOS and OS X Development
book

Xcode 5 Start to Finish: iOS and OS X Development

by Fritz Anderson
May 2014
Intermediate to advanced content levelIntermediate to advanced
624 pages
19h 43m
English
Addison-Wesley Professional
Content preview from Xcode 5 Start to Finish: iOS and OS X Development

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Fritz Anderson
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9780133751031Purchase book