如何从objective-c解压文件在iOS8或iOS9中,我使用了ZipArchive和其他框架,但没有显示"Build Projectname Failed“,但没有显示错误或警告。
发布于 2016-01-20 17:29:50
你可以尝试这个库:
然后你可以用下面的代码解压
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *outputPath = [documentsDirectory stringByAppendingPathComponent:@"/ImagesFolder"];
NSString *zipPath = Your zip file path;
[SSZipArchive unzipFileAtPath:zipPath toDestination:outputPath delegate:self];希望能有所帮助。
https://stackoverflow.com/questions/34894778
复制相似问题