WPZipArchive is a simple utility class for zipping and unzipping files on iOS and Mac.
- Unzip zip files
- Unzip password protected zip files
- Create new zip files
- Append to existing zip files
- Zip files
- Zip-up
NSData
instances (with a filename)
pod install WPZipArchive
- Add the
WPZipArchive
andminizip
folders to your project. - Add the
libz
library to your target
WPZipArchive requires ARC.
#import <WPZipArchive/WPZipArchive.h>
// Create
[WPZipArchive createZipFileAtPath: zipPath withContentsOfDirectory: sampleDataPath];
// Unzip
[WPZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];
@import WPZipArchive
// Create
WPZipArchive.createZipFileAtPath(zipPath, withContentsOfDirectory: sampleDataPath)
// Unzip
WPZipArchive.unzipFileAtPath(zipPath, toDestination: unzipPath)
WPZipArchive is protected under the MIT license and our slightly modified version of Minizip 1.1 is licensed under the Zlib license.
- @soffes for creating SSZipArchive.
- aish for creating ZipArchive, the project that inspired SSZipArchive.
- @randomsequence for implementing the creation support tech.
- @johnezang for help along the way.