Login required for access
In order to watch this lesson, you'll need to login to the website.
Persistence with UserDefaults NSCoding
Podcasts
Many of you are probably aware that you can save basic value types into UserDefaults. For example, you can save these types: Int, String, NSNumber, Array, etc. The question now is: how would you save a Podcast into UserDefaults? Well, the secret here is to conform to the NSCoding protocol and tell the system what exactly to save. Once our save is done, we also have to retrieve it from UserDefaults somehow. The process in which this happens is to decode the blob of data that we associated to the key we used to perform the save. All that and more in today's lesson.

Comments (5)
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
3 years ago
HELP & SUPPORT