Join Todd Perkins for an in-depth discussion in this video Tracking changes and autosaving documents, part of iOS App Development: Apple iCloud API (2013).
UI document has autosave functionality. All you have to do is tell the document that…a change was made, and UI document will automatically determine a good time to…send the data to iCloud. Then other devices are notified of the updates and they can…display the updated information.…So let's scroll down, and all we have to do is write a few lines of code to check this update.…So find setNote for key, and under the existing code what we want to do is check…to see if the note is not a default note.…
So use the not operator, and check if note isEqualToString kDefaultText.…So if it's not a default note, it's either a new note or a changed note, then what…we're going to do is tell our document that a change has occurred.…So cloudDoc updateChangeCount, and then we pass in the ChangeKind.…As you start to type UI document you will see the different ChangeKinds.…The ChangeKind we're putting in here is ChangeDone.…
So a change has been made and completed.…So we're letting the document know that, and when UI document determines that…
- 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?
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.