开发者

How to store/retrieve an NSMutableArray of objects?

开发者 https://www.devze.com 2023-01-01 07:34 出处:网络
How do I store/retrieve an NSMutableArray of objects开发者_高级运维? The easy / fast way please. Thanks!It depends on what format you\'d like to use. If you are fine with using property lists, then yo

How do I store/retrieve an NSMutableArray of objects开发者_高级运维? The easy / fast way please. Thanks!


It depends on what format you'd like to use. If you are fine with using property lists, then you can use writeToFile to save the array, and you can use arrayWithContentsOfFile to load it back again.


Archiving? Missed the iPhone tag, not sure if this will work on the iPhone or not.

0

精彩评论

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