ZipArchive *unZip = [[ZipArchive alloc]init]; if ([unZip unzipOpenFile:savePath]) { BOOL ret = [unZip unzipFileTo:createDic overwrite:YES]; if (ret == YES) { NSLog(@"zip success"); [unZip closeZipFile]; } }
注意:zipArchive不支持中文文件名,图片
ZipArchive *unZip = [[ZipArchive alloc]init]; if ([unZip unzipOpenFile:savePath]) { BOOL ret = [unZip unzipFileTo:createDic overwrite:YES]; if (ret == YES) { NSLog(@"zip success"); [unZip closeZipFile]; } }
注意:zipArchive不支持中文文件名,图片