why [resposta esperadoContentLength] sempre retorna -1
-(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
if([recievedData length]) [ recievedData setLength:0 ];
download_size =[response expectedContentLength];
}
Eu tenho esse código. download_size é o NSInteger. o esperadoContentLenght sempre retorna: -1. Talvez alguém saiba por quê? Tentei usar por muito tempo, mas o efeito foi o mesm
brigado pela ajud