Join Todd Perkins for an in-depth discussion in this video Creating a new note, part of Building a Note-Taking App for iOS 7.
…Now we're going to build our application by…creating notes in our master view controller class.…Before we do that we want to…go to appdelegate.m and initialize our data model.…So, inside application didFinishLaunchingWithOptions, right below…the comment, I'm going to call data.…In order to do that, I'll need to import the data…class, so I'll import it on line ten in my code.…So, import data.h, you always import the header file, not the implementation file.…
I'm going to call Data getAllNotes.…Now, I mentioned that this is initializing our notes and if you look back…at Data getAllNotes, you see that allNotes…is indeed initialized, right there in that method.…So, we initialize all of our notes from the dictionary, and remember…that if we have data saved to persistent storage, we're loading that…data, and if there is no data saved in persistent storage, then…we're just creating an empty dictionary…there, so we initialize that in AppDelegate.m.…
Now let's go to MasterViewController.m and in here, I'm going…to import the data class as well, so import data.h.…
These courses take you through building a complete mobile app from scratch; this installment uses the iOS SDK and Xcode to get the job done. Author Todd Perkins shows you how to create an Xcode project, lay out apps visually, connect UI elements to code, and save data to persistent storage. Start here, and compare and contrast your results with the other courses to learn about the differences and similarities of the platforms.
- Previewing the note-taking app's features
- Creating the Xcode project
- Using local data storage
- Creating a data class
- Saving data to a file
- Understanding screens and storyboards
- Creating and editing notes
- Controlling note display in a table view
- Deleting notes