2010-08-20 04:27:48 +08:00
|
|
|
# SSZipArchive
|
2010-07-22 07:05:38 +08:00
|
|
|
|
2010-08-20 04:27:48 +08:00
|
|
|
SSZipArchive is a simple utility class for unzipping files based on [ZipArchive](http://code.google.com/p/ziparchive).
|
2010-07-22 07:05:38 +08:00
|
|
|
|
|
|
|
Currently it only supports unzipping. In the future, creating zip files will be supported.
|
2010-07-22 07:09:14 +08:00
|
|
|
|
|
|
|
## Adding to your project
|
|
|
|
|
2010-08-20 04:27:48 +08:00
|
|
|
1. Add `SSZipArchive.h`, `SSZipArchive.m`, and `minizip` to your project.
|
2010-07-22 07:09:14 +08:00
|
|
|
2. Add the `libz` library to your target
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
NSString *path = @"path_to_your_zip_file";
|
|
|
|
NSString *destination = @"path_to_the_folder_where_you_want_it_unzipped";
|
2010-08-20 04:27:48 +08:00
|
|
|
[SSZipArchive unzipFileAtPath:path toDestination:destination];
|