ZipArchive *unZip = [[ZipArchive alloc]init]; if ([unZip unzipOpenFile:savePath]) { BOOL ret = [unZip unzipFileTo:createDic overwrite:YES]; if (ret == YES) { NSLog(@"zip success"); [unZip closeZipFile]; } }
时间: 2024-12-05 12:55:50
ZipArchive *unZip = [[ZipArchive alloc]init]; if ([unZip unzipOpenFile:savePath]) { BOOL ret = [unZip unzipFileTo:createDic overwrite:YES]; if (ret == YES) { NSLog(@"zip success"); [unZip closeZipFile]; } }