In order to view this lesson, you must purchase this course.
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<PrimitiveType>, 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.