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).
精彩评论