How to write multiple files from one NSData object?

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.

+3
source share
1 answer
0

Source: https://habr.com/ru/post/1746278/


All Articles