I am writing an iPhone application that includes an in-app purchase. It downloads the zip file, then I unzip the file using the popular NSData category (zlibDeflate) , which outputs the uncompressed file to an NSData object. The mail file contains several files that I need to write to the Documents directory. How to write each file separately from this NSData object? writeToFile just writes it all to a single file.
Thank you and let me know if you need more information.
source
share