Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

SUMMARY

In this chapter, you had a good look at how you can store your documents and data on iCloud. Using iCloud, you can automatically synchronize your documents and data across applications running on multiple devices. Best of all, the iOS SDK provides the UIDocument class, which provides all the heavy-lifting needed to ensure that documents are synced and updated correctly, thus leaving you with more time to develop your application.

EXERCISES

  1. Name the method you can use to obtain the path of your iCloud storage container.
  2. What is the advantage of saving your documents in the Documents folder of your iCloud storage container?.
  3. What is the advantage of storing key-value data on iCloud?

Answers to the exercises can be found in Appendix D.

imageWHAT YOU LEARNED IN THIS CHAPTER

TOPIC KEY CONCEPTS
Two main uses for iCloud Use for document storage and data storage.
Setting entitlements for iCloud Set the iCloud Containers entitlement and the iCloud Key-Value Store entitlement.
Managing iCloud documents Subclass the UIDocument class.
Methods to implement in subclass of UIDocument The three methods are:initWithFileURL:loadFromContents:ofType:error:contentsForType:error:
Create a Documents folder in iCloud to store your documents Doing so allows users to manage the files directly through the Settings application.
Storing key-value data on iCloud Use the NSUbiquitousKeyValueStore ...
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

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book