这是我的代码
theDownloadConnection=[[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
它正在调用这些 NSURLConnection 委托方法
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
- (void)connectionDidFinishLoading:(NSURLConnection *)connection;
但它没有调用
- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten
totalBytesWritten:(NSInteger)totalBytesWritten
totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
当我这样做时,NSURLConnection 委托调用的这个方法
[NSURLConnection connectionWithRequest:request delegate:self];
我不明白为什么会这样?