Join Todd Perkins for an in-depth discussion in this video Demoing the finished app, part of Developing for the Apple iCloud API with iOS (2013).
- View Offline
Here is the finished version of this application. As you can tell, it's pretty basic, you tap the plus button to create a note, and I'll call this note Example note. Then I can save the note by hitting the Notes button to go back. Of course I can edit the note if I want to by tapping the note again, call this Example note changed, and then go back to save it. Now the great thing about this is with the iCloud integration, I automatically see this update appear on any devices that are logged into the same iCloud account.
Typically this update is going to happen within 10 to 15 seconds. And right now you can see the update happened on the other device. So I have my second device here with that exact note updated on it. Let's say I wanted to delete this note from my second device. When I delete that note, 10 to 15 seconds later, depending on your connection speed, it might take longer, or shorter, you're going to see that note disappear from my original device. That's really the gist of iCloud, is that we have this automatic syncing that happens semi-magically in the background, and we create this as developers so that users have the easiest experience integrating all their data between multiple devices.
So that's the finished version of our application, and throughout this course we're going to look at how to build all the different parts of it and how to make sure that they sync together in the appropriate way. So let's move forward in building our application to integrate with iCloud.
- 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