tôi đã sử dụng ASIHTTPRequest
trong dự án của tôi, nhưng trong file ASIDataCompressor.m
dòng 190
:Cảnh báo: So sánh liên tục 8 với biểu hiện của loại XXXX luôn là sai
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;
}
nó cảnh báo cho tôi này:
Bất kỳ ai biết cách khắc phục? thx
đơn giản và mạnh mẽ! – yellow
thực sự, đây có thể là API kém trên một phần của ASIHTTP. Ngoài ra, nếu đây là một dự án mới, tôi biết ASIHTTP đã bị lỗi thời bởi tác giả của nó, vì vậy bạn có thể muốn xem xét các lựa chọn thay thế, như AFNetwork. Tuy nhiên, ASIHTTP thực sự rất đầy đủ tính năng. – nielsbot
cảm ơn bạn, tôi sẽ cố gắng sử dụng AFNetwork.https: //github.com/AFNetworking/AFNetworking – yellow