开发者

How to store and retrieve a custom class

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜