-(void)unZipImages:(NSArray*)arguments
{
NSTask *unzipTask = [[NSTask alloc] init];
[unzipTask setLaunchPath:@"/user/bin/unzip"]; //this is where the unzip application is on the system.
[unzipTask setCurrentDirectoryPath:NSTemporaryDirectory()]; //this means we only have to pass one argument, the path to the zip.
[unzipTask setArguments:arguments];
[unzipTask launch];
[NSThread sleepForTimeInterval:5];
NSLog(@"extracted.....");
}
0 Comment(s)