简体   繁体   中英

How to unzip folder in IOS iPhone application

I am trying to unzip folder with in my iPhone application. Can any one help me on this. Thank you.

You need to use SSZipArchive in order to working with zip files.

Below line would unzip your zip file.

[SSZipArchive unzipFileAtPath:path toDestination:destination];

Download zipArchieve.zip file which used to unzip files in iPhone.

It contains following things...

zipArchieve.zip click here to download

1.minizip folder
2.ZipArchive.h
3.ZipArchive.mm

Then just drag & drop ZipArchive folder in to xCode "Classes".

Then add framework libz.1.2.3.dylib .

That's it. My code get compile without any issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM