Join Todd Perkins for an in-depth discussion in this video Building the data model and constants, part of iOS App Development: Apple iCloud API (2013).
Now, as we have discussed earlier, this app is going to use the…ModelViewController design pattern.…So as part of the model, we're going to create a class to hold all the data and…we'll access the data through static methods.…We'll also create a file to hold our constant values.…So I am going to press Command+N to create a new file, and I'll choose…Other, Empty, and click Next, we'll call this file Constants.h, and then I'll click Create.…
In Constants.h I'm going to define three values.…So, we'll define one called kDefaultText, we'll set it equal to New Note, this is…going to be the default text when you create a New Note, and then we'll define…another value called kAllNotes, this is going to represent the key that holds…all the notes in user defaults. Call this notes. And then finally, we'll…define kDetailView, that will represent the DetailViewController, and we'll call this showDetail.…
Save the file, and press Command+N to create a new file.…Under Cocoa Touch, choose Objective-C class and click Next. The Class name is…
- 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.