Join Todd Perkins for an in-depth discussion in this video Using local data storage, part of Building a Note-Taking App for iOS 7.
…Let's look at our local data storage options.…Here's what iOS offers you to store data.…User defaults, creating your own custom files and coreData and SQLite databases.…First, user defaults.…User defaults are key value pairs that are managed through Objective-C.…They're stored in XML files.…Easily managed through the API in an unencrypted format.…File storage.…Files can be created and read on persistent media.…
But there aren't any special file types.…So you can store any type of file that you'd like.…It can be custom.…It can have a custom extension.…And it can even associate your app with your own custom extension.…Files can be created at runtime, locally to the app.…Or in shared file locations.…Finally, core data and SQLite.…So you can save structured data in a SQLite database.…iOS provides built-in support for SQLite.…Which you can read about at SQLite.org.…Classes and interfaces are in the CoreData package.…
There is entire course on lynda.com about CoreData and SQLite if you're interested.…In CoreData, database files are stored local to your app.…
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