Reputation: 281
I am trying to unzip folder with in my iPhone application. Can any one help me on this. Thank you.
Upvotes: 10
Views: 22284
Reputation: 221
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.
Upvotes: 5
Reputation: 4577
You need to use SSZipArchive in order to working with zip files.
Below line would unzip your zip file.
[SSZipArchive unzipFileAtPath:path toDestination:destination];
Upvotes: 24