Book Image

iOS 5 Essentials

By : Steven F. Daniel
Book Image

iOS 5 Essentials

By: Steven F. Daniel

Overview of this book

Building on the phenomenal success of its predecessor iOS 5 includes over 200 new user features as well as an updated SDK containing over 1,500 new APIs. iOS 5 looks set to reinforce the iPhone's dominance in the smartphone market. iOS 5 Essentials will help you learn how to build simple, yet powerful iOS 5 applications incorporating iCloud Storage, Twitter, Core Image and Newsstand integration. You will start by learning about what's new in iOS 5. You'll look at the iCloud Storage APIs, Automatic Reference Counting, Twitter and AirPlay integration, how to use the various Core Image filters using the Cocoa framework, and the new features of the iOS 5 SDK. After this, you'll jump straight in and create applications using Xcode and Interface Builder using the new storyboard layout. We then finish up by learning how to make your applications run smoothly using the Xcode instruments.
Table of Contents (16 chapters)

Storing and using documents in iCloud


Storing documents within the Cloud provides you with a common central location for easy access to those documents. Any updates that are made to the document can then be delivered to every iOS device or computer, as long as they are using the same Apple ID used to upload those documents.

When a document is uploaded to iCloud, it is not moved there immediately. The document must first be moved out of the application sandbox into a local system-managed directory, where it can be monitored by the iCloud service.

Once this process has completed, the file is transferred to iCloud and then distributed out to the user's other iOS devices as soon as possible. While the files are stored within iCloud storage, any changes that are made on one device are initially stored locally and then immediately pushed out to iCloud, using a local daemon service.

This is to prevent file conflicts from happening at the same time; this is handled by the File coordinator, which mediates...