Xcode 4.5 Changes

September 20th, 2012

Filed under: Xcode | Be the first to comment!

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.

Auto Layout

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.

Interface Builder

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.

Target Summary

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.

Deployment Targets

The earliest deployment target for iOS projects is iOS 4.3.

Architectures

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.

Organizer

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:


Leave a Reply

Your email address will not be published. Required fields are marked *