Zip and UnZip a file programmatically in iOS?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 01:40:49

问题


How can we zip and unzip a file through coding?


回答1:


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




回答2:


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


来源:https://stackoverflow.com/questions/5029917/zip-and-unzip-a-file-programmatically-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!