iPhone 使用Objetive-zip读取zip文件
2010-08-21 06:30:00 来源:WEB开发网核心提示:NSString *fileText2= [[[NSString alloc] initWithBytes:[data2 bytes] length:bytesRead2 encoding:NSUTF8StringEncoding] autorelease];NSLog(@"%@",fileText
NSString *fileText2= [[[NSString alloc] initWithBytes:[data2 bytes] length:bytesRead2 encoding:NSUTF8StringEncoding] autorelease];
NSLog(@"%@",fileText2);
}
[unzipFile release];
} @catch (ZipException *ze) {
NSLog(@"ZipException caught: %d - %@", ze.error, [ze reason]);
} @catch (id e) {
NSLog(@"Exception caught: %@ - %@", [[e class] description], [e description]);
}
[pool drain];
return 0;
}
更多精彩
赞助商链接