Tuesday, 22 March 2011

Extract zip in iPhone

Below is the download link to unzip file within iPhone

http://zeeshanullah.com/blog/downloads/Zip.zip

Below is the code to use this zip library

ZipArchive *za = [[ZipArchive alloc] init];
if ([za UnzipOpenFile: fromFile]) {
BOOL ret = [za UnzipFileTo: toFile overWrite: YES];
if (NO == ret){} [za UnzipCloseFile];
}
[za release];

(fromFile : The zip file path)
(toFile : Where to place extracted zip)

No comments:

Post a Comment