September 20th, 2012
Xcode 4.5 is now available at the Mac App Store. This post provides a brief explanation of the changes I noticed in Xcode 4.5 that affect the material in the book. Most of the changes in Xcode 4.5 apply to iOS projects.
Xcode 4.5 adds support for auto layout to iOS applications. New projects have auto layout enabled. If you don’t want to use auto layout, open the file inspector and deselect the Use Autolayout checkbox.
When using auto layout, the lower right corner of the canvas has three buttons. The left button aligns items. It is the equivalent of choosing Editor > Align. The center button pins items. It is the equivalent of choosing Editor > Pin. The right button lets you control how constraints are applied when resizing views.
The Objects and Controllers section of the Object Library has a collection view controller. Adding a collection view controller also adds a collection view to the xib file. The Data Views section of the Object Library has a collection view, a collection view cell, and a collection reusable view.
Modal segues in storyboards have an Animates checkbox that lets you determine if modal segues should be animated.
The target summary for iOS projects has a Status Bar section that lets you control the appearance of the status bar.
The iCloud Containers table is now called Ubiquity Containers.
There is a Maps Integration section for iOS projects. It controls what modes of transportation to use when generating directions.
The earliest deployment target for iOS projects is iOS 4.3.
Xcode standard configuration for iOS projects is to build for armv7 and armv7s, which the iPhone 5 uses. You cannot build for armv6 with Xcode 4.5.
If you click the Devices button at the top of the Organizer and select the Device Logs section, the bottom of the Organizer has buttons to import, export, and resymbolicate a crash log.
There is now a Teams section on the left side of the Organizer if you click the Devices button. The Teams section replaces the Developer Profile item.
Tags: xcode 4