我需要将ZIP文件的内容解压缩到选定的目录中。我确实做了:
ZZArchive* archive = [ZZArchive archiveWithContentsOfURL:[NSURL fileURLWithPath:@:"blahblah.zip"]];
for (NSUInteger index = 0, count = archive.entries.count; index < count; ++index)
{
ZZArchiveEntry* archiveEntry = archive.entries[index];
NSString *inZipFileName = nextEntry.fileName;
}但是如何将archiveEntry解压成文件名inZipFileName呢?
发布于 2012-12-06 23:06:30
最后,它很简单:
NSData *data = [nextEntry data];
[data writeToFile:@"uncompressed_filename" atomically:NO];维尼,维迪,维西...
https://stackoverflow.com/questions/13707236
复制相似问题