xcode 如何在 IOS iPhone 应用程序中解压文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6786835/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to unzip folder in IOS iPhone application
提问by nitesh meshram
I am trying to unzip folder with in my iPhone application. Can any one help me on this. Thank you.
我正在尝试在我的 iPhone 应用程序中解压缩文件夹。谁可以帮我这个事。谢谢你。
回答by Deeps
You need to use SSZipArchivein order to working with zip files.
您需要使用SSZipArchive才能处理 zip 文件。
Below line would unzip your zip file.
下面的行将解压缩您的 zip 文件。
[SSZipArchive unzipFileAtPath:path toDestination:destination];
回答by Karthikkumar
Download zipArchieve.zip file which used to unzip files in iPhone.
下载用于在 iPhone 中解压文件的 zipArchieve.zip 文件。
It contains following things...
它包含以下内容...
zipArchieve.zip click here to download
1.minizip folder
2.ZipArchive.h
3.ZipArchive.mm
1.minizip 文件夹
2.ZipArchive.h
3.ZipArchive.mm
Then just drag & drop ZipArchive
folder in to xCode "Classes".
然后只需将ZipArchive
文件夹拖放到 xCode“类”中。
Then add framework libz.1.2.3.dylib
.
然后添加框架libz.1.2.3.dylib
。
That's it. My code get compile without any issue.
就是这样。我的代码可以毫无问题地编译。
回答by iProgrammer
USE ZipArchive