开发者

How can i convert a NSData to NSArray? [duplicate]

开发者 https://www.devze.com 2023-03-08 04:32 出处:网络
This q开发者_JAVA百科uestion already has answers here: Closed 11 years ago. Possible Duplicates: How to convert NSArray to NSData?
This q开发者_JAVA百科uestion already has answers here: Closed 11 years ago.

Possible Duplicates:

How to convert NSArray to NSData?

Need to convert NSData to NSArray

HI, I have a NSData object named as "myNsData"(it is converted form of NSArray) and a NSarray named as "myNsArray. can any one provide me a code to convert a NSData to NSArray?


See this post... Convert NSArray to NSData

The last comment deals with the reverse....

NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithData:data]


I am not sure but can you try

   NSArray *myNsArray = [NSKeyedUnarchiver unarchiveObjectWithData:myNsData];
0

精彩评论

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