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

Autoresizing

Wait. This isn’t right (Figure 19.3). The window resizes, but the table doesn’t. It just sits in the upper-left corner of the window, at the same size it had when you created it.

Image

Figure 19.3 When you resize the document window in the Cocoa Simulator, the table doesn’t resize with it.

Cocoa has two ways to manage sizing problems like this: You’ve lived through autolayout, in exhaustive detail, in Chapter 12, “Autolayout in a New View.” The other is autoresizing, which has been available on the Mac and iOS from the beginning.

Note

If you quit the Cocoa Simulator and then reopen it, you’ll find OS X’s state restoration gives you the ...

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