iOS Zip檔案解壓
NSString *path;
NSString *zipPath;
NSArray *pathes =NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask,YES);
path= [pathes objectAtIndex:0];
zipPath= [path stringByAppendingPathComponent:@"temp.zip"];
[data writeToFile:zipPath options:0 error:nil];
[SSZipArchive unzipFileAtPath:zipPath toDestination:path];
NSString *htmlpath = [path stringByAppendingPathComponent:@"test.html"];
NSString *template = [NSString stringWithContentsOfFile:htmlpath encoding:NSUTF8StringEncoding error:nil];
NSLog(@"%@", template);