相关链接
基本使用
说明:此三方用于文件的压缩,object-c/swift都可以,使用前先导入 libz.tbd 库
object-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的第三方库,该库可用于Objective-C和Swift中进行文件压缩和解压缩操作。文中提供了如何创建压缩文件及解压文件的具体代码示例,并指出在使用前需要导入libz.tbd库。

1320

被折叠的 条评论
为什么被折叠?



