文件压缩与解压
2016-05-10 14:38
211 查看
使用一个第三方框架ZipArchive githud地址
需要倒入libz.tbd框架
https://github.com/ZipArchive/ZipArchive
NSArray * array=@[
@"/Users/xiezefeng/Desktop/1.png",
@"/Users/xiezefeng/Desktop/3.png",
@"/Users/xiezefeng/Desktop/2.png"
];
//压缩文件
[SSZipArchive createZipFileAtPath:@"/Users/xiezefeng/Desktop/fengfengfeng.zip" withFilesAtPaths:array];
解压文件从什么解压放到哪里
[SSZipArchive unzipFileAtPath:@"/Users/xiezefeng/Desktop/fengfengfeng.zip" toDestination:@"/Users/xiezefeng/Desktop"];
需要倒入libz.tbd框架
https://github.com/ZipArchive/ZipArchive
NSArray * array=@[
@"/Users/xiezefeng/Desktop/1.png",
@"/Users/xiezefeng/Desktop/3.png",
@"/Users/xiezefeng/Desktop/2.png"
];
//压缩文件
[SSZipArchive createZipFileAtPath:@"/Users/xiezefeng/Desktop/fengfengfeng.zip" withFilesAtPaths:array];
解压文件从什么解压放到哪里
[SSZipArchive unzipFileAtPath:@"/Users/xiezefeng/Desktop/fengfengfeng.zip" toDestination:@"/Users/xiezefeng/Desktop"];
相关文章推荐
- Python详说正则表达式(对常用的关键字符的讲解)
- C#学习笔记之里式转换
- FastCgi与PHP-fpm之间是个什么样的关系
- 在linux下配置java版本方便切换
- Codeforces635C XOR Equation【数学】
- 动态删除Fragment只能用FragmentStatePagerAdapter
- C++private继承
- Codeforces635C XOR Equation【数学】
- IOS文件操作的两种方式:NSFileManager操作和流操作
- Activity生命周期和启动模式
- TCP/IP详解学习笔记(9)-TCP协议概述
- SQL Server 修改表结构被阻止 解决办法
- js中的正则表达式
- 编程小练习
- TCP/IP详解(三)---IP、ARP协议
- javascript阻止scroll事件多次执行的思路及实现
- 第10、11周-阅读程序(5)c
- 如何在 OSX 中開啟多個 Eclipse
- 团体程序设计天梯赛-练习集 L2-3. 月饼 贪心
- qt webview 忽略 ssl错误 ignoreSslErrors