NSCoding Tutorial for iOS: How to Permanently Save App Data

In this NSCoding tutorial, you’ll learn how to save and persist iOS app data so that your app can resume its state after quitting. By Ehab Amer.

Leave a rating/review
Download materials
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go From Here?

NSKeyedArchiver and NSKeyedUnarchiver classes are not the only way to encode and decode data to a be easily written on disk. There are many other formats like JSON.

The easiest way to serialize Swift models to JSON is by conforming to Codable. To learn how this works, see our tutorial about it.

I hope you enjoyed this tutorial. If you have any questions or comments, please don’t be “scared” and join the forum discussion below. :]