How to write multiple files from one NSData object?

Posted by Kevin Cupp on Stack Overflow See other posts from Stack Overflow or by Kevin Cupp
Published on 2010-05-19T21:31:52Z Indexed on 2010/05/27 21:21 UTC
Read the original article Hit count: 196

Filed under:
|
|
|

Hi there! 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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk