在iOS中以编程方式压缩和解压缩文件?

Zip and UnZip a file programmatically in iOS?

我们如何通过编码对文件进行压缩和解压缩?


看看这个SO问题。

这是一个ziparchive库

ziparchive An Objective C class for
zip/unzip on iPhone and Mac OSX


也来看看ZipKit。

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).