开发者

How to write multiple files from one NSData object?

I'm writing an iPhone app that includes in-app purchasing. It downloads a zip file, then I unzip the file using the popular NSData category (zlibDeflate) which outputs the uncompressed file into an NSData object. The zip file contains multiple files in it which I need to write to the Documents directory. How can I write each file separately from this one NSData object? writeToFile开发者_高级运维 just writes the whole thing to one file.

Thank you and let me know if you need any more information.


If you still haven't fixed this, you could try and use:

http://code.google.com/p/ziparchive/

and read the comments to the documentation here:

http://code.google.com/p/ziparchive/wiki/PageName

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜