博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS 开发压缩--SSZipArchive
阅读量:4312 次
发布时间:2019-06-06

本文共 613 字,大约阅读时间需要 2 分钟。

// 解压NSString *zipPath = @"被解压的文件路径";NSString *destinationPath = @"解压到的目录";[SSZipArchive unzipFileAtPath:zipPath toDestination:destinationPath];// 压缩NSString *zippedPath = @"压缩文件路径";NSArray *inputPaths = [NSArray arrayWithObjects:                       [[NSBundle mainBundle] pathForResource:@"photo1" ofType:@"jpg"],                       [[NSBundle mainBundle] pathForResource:@"photo2" ofType:@"jpg"]                       nil];[SSZipArchive createZipFileAtPath:zippedPath withFilesAtPaths:inputPaths];

http://blog.csdn.net/kqygww/article/details/24851877

转载于:https://www.cnblogs.com/wanghuaijun/p/5228134.html

你可能感兴趣的文章
转载:从集群计算到云计算
查看>>
服务器文件管理
查看>>
作业2
查看>>
ios上架报错90080,90087,90209,90125 解决办法
查看>>
给button添加UAC的小盾牌图标
查看>>
如何退出 vim
查看>>
Robberies
查看>>
get post 提交
查看>>
R安装
查看>>
跟我一起学C++
查看>>
Android自动化测试之环境搭建
查看>>
JavaScript运算符
查看>>
html position布局
查看>>
VTP
查看>>
Linux内核分析第一周——计算机是如何工作的
查看>>
Windows 自动启动 bat
查看>>
不规则按钮,支持普通Button,Radio Button, Check Button
查看>>
【C语言】模拟实现库函数strcat函数
查看>>
用newLISP读取Hive的元数据
查看>>
模式识别 - libsvm该函数的调用方法 详细说明
查看>>