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不支持中文文件名,图片
2024-03-27 19:44:52
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不支持中文文件名,图片