IOS 知识积累

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

2016-10-17  本文已影响122人  爱貌貌Manners

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

一、 使用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"];

其他链接

上一篇下一篇

猜你喜欢

热点阅读