Reputation: 1795
How can we zip and unzip a file through coding?
Upvotes: 11
Views: 14755
Reputation: 2822
Take a look at ZipKit also.
ZipKit is an Objective-C framework for reading and writing Zip archives in Mac OS X and iOS apps, it supports:
- the standard PKZip format
- files larger than 4GB in size using PKZip's zip64 extensions
- optionally, resource forks in a manner compatible with Mac OS X's Archive Utility (in the > Mac OS X targets only)
- clean interruption, so archiving can be cancelled by the invoking object (e.g., a NSOperation or NSThread).
Upvotes: 3
Reputation: 26350
Take a look at this SO questions.
And here is a library ziparchive
ziparchive An Objective C class for zip/unzip on iPhone and Mac OSX
Upvotes: 11