Property Lists and Archiving
Learn to save and load simple data structures using NSUserDefaults, property lists, and NSKeyedArchiver.
Why Data Persistence?
When your app closes, all its in-memory data disappears. To keep user settings, game progress, or other important information, you need data persistence.
Data persistence means saving data to a permanent storage location, like a file on the device, so it can be retrieved later.
Understanding Property Lists
Property Lists (PLists) are a standard way for iOS apps to store structured data. They're XML or binary files that represent common data types.
- Supported Types:
NSString,NSNumber,NSDate,NSData,NSArray,NSDictionary. - PLists are great for small, hierarchical data like user preferences or configuration settings.
All lessons in this course
- Property Lists and Archiving
- Core Data Fundamentals
- SQLite Integration with FMDB
- Storing Preferences with NSUserDefaults