Join Todd Perkins for an in-depth discussion in this video Using iCloud as your main data source, part of iOS App Development: Apple iCloud API (2013).
So let's say you wanted iCloud to be your main source of data for your app, so…you back everything up to iCloud and as soon as you get an update from iCloud you…just overwrite all the local of data with your cloud data.…Now you may be thinking off the bat that their might be some problems with that,…but I want to show you how to do it anyway, in case there are those of you out…there who would like to see how to do it. And we are going to spend the rest of…this chapter after this…improving the app step by step to give it better support with cloud data, and…better integrate that with the local data.…
So we always have the most accurate, up-to-date information in our app when we are running it.…So what we are going to do is scroll down to data updated from cloud, and I'm in the data class.…And in here, I am going to create an NSDictionary called dictionary called cloudData.…Now remember we can grab a dictionary as if we're using NSUserDefaults, except…for use NSUbiquitousKeyValueStore defaultStore, and then we just call…
- Understanding the class structure of an app
- Building the data model and constants
- Making your app compatible with the Apple Developer portal
- Connecting to iCloud
- Understanding the UIDocument class
- Handling document metadata class
- Opening, closing, saving, and deleting documents from iCloud
Skill Level Intermediate
iOS 6 App Development New Featureswith Simon Allardice2h 29m Intermediate
1. Building the Note-Taking App
2. Preparing the App to Use iCloud
3. Working with iCloud Key-Value Pairs
4. Working with iCloud Documents
Next steps2m 41s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.