当我运行我的应用程序时,我将这个输出发送到控制台:
位长溢出码11位7->5码16位4->5
位长溢出码4位6->7
位长溢出码3位6->7码0位6->7
位长溢出码16位4->5
位长溢出码4位6->7码5位6->5码16位4->5
位长溢出码16位4->5
位长溢出码0位6->7
位长溢出码11位6->7
该应用程序压缩了3个文件,并将其保存到它的documents文件夹中,从这个输出结果看,这一切看起来都是OK....apart。
更新:
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@try {
NSString *docsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
NSString *filePath = [docsPath stringByAppendingPathComponent:@"ZipTest.zip"];
ZipFile *zipFile = [[ZipFile alloc] initWithFileName:filePath mode:ZipFileModeCreate];
ZipWriteStream *stream;
if (self.textSwitch.on) {
stream = [zipFile writeFileInZipWithName:@"text.txt" compressionLevel:ZipCompressionLevelBest];
}
[zipFile close];
[zipFile release];
}
@catch (ZipException *ze) {}
@catch (id e) {}
[pool drain];什么意思?
谢谢
发布于 2016-06-22 18:54:43
根据这个Mozilla虫,这些都是在调试模式下构建ZLIB引起的,是无害的。您可以始终查看构建ZLIB的发布版本。
https://stackoverflow.com/questions/6219072
复制相似问题