Native Data Serialization in iOS
summary
Covers data serialization on iOS: which formats are used (for transfer and storage), APIs available from pre-Swift days and their pros/cons, and the new Swift 4 Codable approach. Compares old and new techniques on performance and real-world use cases, and highlights practical pitfalls and example scenarios developers may encounter.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:12What is serialization
- 2:38JSON in mobile apps
- 4:23Local storage options
- 6:10Custom model challenges
- 8:57NSKeyedArchiver basics
- 12:12Swift's impact
- 15:44Binary formats
- 18:12Performance comparison
- 21:46Legacy class integration
- 22:07NSSecureCoding overview
- 24:16Handling complex enums
- 27:48Custom code generation
- 29:16Object graph serialization
- 34:35Archiving vs coding
- 37:48State restoration
- 42:27NSKeyedArchiver vs Codable
- 44:36Summary
- 45:47Q&A
