开发者

How to initialize NSData Object with NSMutableArray?

开发者 https://www.devze.com 2023-02-03 09:09 出处:网络
In my iphone app, I have an NSMutableArray which i want to store into NSDat开发者_运维百科a. I am not finding a way with which I can do so.

In my iphone app, I have an NSMutableArray which i want to store into NSDat开发者_运维百科a.

I am not finding a way with which I can do so.

What should be done??

Please help and suggest.

Thanks.


Check out NSPropertyListSerialization. That should let you convert the array to an NSData containing a property list. Note though that everything in the array has to support this (NSString, NSNumber, NSArray, NSDictionary, etc... are all valid property list types).

0

精彩评论

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