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-10-05 04:58:26
ZipArchive *unZip = [[ZipArchive alloc]init]; if ([unZip unzipOpenFile:savePath]) { BOOL ret = [unZip unzipFileTo:createDic overwrite:YES]; if (ret == YES) { NSLog(@"zip success"); [unZip closeZipFile]; } }