SSZipArchive压缩三方的使用

相关链接


基本使用

说明:此三方用于文件的压缩,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)

猜你喜欢

转载自blog.csdn.net/github_33467146/article/details/81092828