我在项目中使用了ASIHTTPRequest
,但是在文件ASIDataCompressor.m
中的190
行中:
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {
if (err) {
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
}
[compressor closeStream];
return NO;
}
它警告我:
谁知道怎么修它?谢谢
最佳答案
(NSStreamStatus)NSStreamEventErrorOccurred
编辑
解决此问题的正确方法可能是将NSStreamEventErrorOccurred
替换为NSStreamStatusError
。这可能就是ASIHTTP的作者想要的。