ho usato ASIHTTPRequest
nel mio progetto, ma nel file ASIDataCompressor.m
linea 190
:Attenzione: Confronto di costante 8 con l'espressione di tipo XXXX è sempre false
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;
}
me attenzione questo:
Qualcuno sa come risolverlo? thx
semplice e potente! – yellow
in realtà, questa è probabilmente API scadente da parte di ASIHTTP. Inoltre, se questo è un nuovo progetto, so che ASIHTTP è stato reso obsoleto dall'autore, quindi potresti prendere in considerazione alternative, come AFNetwork. ASIHTTP è davvero pieno di funzionalità, tuttavia. – nielsbot
grazie, proverò ad utilizzare AFNetwork.https: //github.com/AFNetworking/AFNetworking – yellow