Login required for access
In order to watch this lesson, you'll need to login to the website.
Persistence with UserDefaults NSCoding
Podcasts
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.

Comments (5)
Bekzod Rakhmatov
6 years ago
Brian Voong
6 years ago
Bekzod Rakhmatov
6 years ago
Kenny Ho
6 years ago
Brian Voong
6 years ago
Kenny Ho
6 years ago
tobitech
6 years ago
juliolocoh
7 years ago
tomxue
7 years ago
Brian Voong
7 years ago
Kenny Ho
6 years ago
Parlad
6 years ago
Katlego
6 years ago
Kelvin Chen
5 years ago
LaurieHouse
5 years ago
Brian Voong
5 years ago
LaurieHouse
5 years ago
moohammed
4 years ago
Please contact admin@letsbuildthatapp.com if you have any issues.
HELP & SUPPORT