ZipArchiveFork 1.3.2

ZipArchiveFork 1.3.2

测试测试过
语言语言 CC
许可证 MIT
发布最后发布2016年6月

ceekay1991 维护。



  • Sam Soffes

SSZipArchive

ZipArchive 是一个用于在 iOS 和 Mac 上压缩和解压缩文件的简单实用工具类。

  • 解压缩 zip 文件;
  • 解压缩受密码保护的 zip 文件;
  • 创建新的 zip 文件;
  • 追加到现有 zip 文件;
  • 压缩文件;
  • 将 NSData 实例压缩为 zip 文件。(带文件名)

安装和设置

手册

  1. SSZipArchiveminizip 文件夹添加到您的项目中。
  2. libz 库添加到您的目标

SSZipArchive 需要ARC。

用法

Objective-C

// Create
[SSZipArchive createZipFileAtPath: zipPath withContentsOfDirectory: sampleDataPath];

// Unzip
[SSZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];

Swift

// Create
SSZipArchive.createZipFileAtPath(zipPath, withContentsOfDirectory: sampleDataPath)

// Unzip
SSZipArchive.unzipFileAtPath(zipPath, toDestination: unzipPath)

许可证

SSZipArchive 在 MIT 许可证下受保护,我们的略有修改的 Minizip 1.1 版本在 zlib 许可证下授权。

致谢

衷心感谢 aish 为创建 ZipArchive 所做的工作。该项目启发了 SSZipArchive。感谢 @randomsequence 实现创建支持技术,以及 @johnezang 在整个过程中的所有了不起的帮助。