开发者

How to store and retrieve a custom class

开发者 https://www.devze.com 2023-01-14 17:34 出处:网络
NSUserDefaults won\'t accept custom classes. So h开发者_如何学编程ow can these objects be stored and retrieved?You have to make your class implement the NSCoding protocol before it can be serialized i

NSUserDefaults won't accept custom classes. So h开发者_如何学编程ow can these objects be stored and retrieved?


You have to make your class implement the NSCoding protocol before it can be serialized in the user defaults.

See: Archives and Serializations Programing Guide

0

精彩评论

暂无评论...
验证码 换一张
取 消