美文网首页
iOS zip压缩与解压

iOS zip压缩与解压

作者: iOS_tree | 来源:发表于2024-03-13 14:19 被阅读0次

zip压缩与解压可以使用第三方库:
https://github.com/ZipArchive/ZipArchive

使用如下:

// 导入库
#import "SSZipArchive.h"

// 解压
[SSZipArchive unzipFileAtPath:path toDestination:destinationPath];

// 压缩
[SSZipArchive createZipFileAtPath:path withFilesAtPaths:@[file1, file2]];

相关文章

网友评论

      本文标题:iOS zip压缩与解压

      本文链接:https://www.haomeiwen.com/subject/mzxizdtx.html