美文网首页IOS 知识积累
IOS开发第三方框架之「解压缩SSZipArchive」

IOS开发第三方框架之「解压缩SSZipArchive」

作者: 爱貌貌Manners | 来源:发表于2016-10-17 17:44 被阅读122次

这是一款解压缩第三方框架,简单易用

一、 使用cocoapods导入

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "6.0"
target 'target' do
pod "SSZipArchive"
end

二、创建压缩文件

    [SSZipArchive createZipFileAtPath:@"/Users/jeffrey/Desktop/TestAbc.zip"  withContentsOfDirectory:@"/Users/jeffrey/Documents/代码/06网络/08-解压缩/未命名文件夹"];

三、解压缩文件

    [SSZipArchive unzipFileAtPath:@"/Users/jeffrey/Desktop/TestAbc.zip" toDestination:@"/Users/jeffrey/Desktop"];

其他链接

相关文章

网友评论

    本文标题:IOS开发第三方框架之「解压缩SSZipArchive」

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