开发者

How to initialize NSData Object with NSMutableArray?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜