NSURLConnection无法识别

时间:2012-11-23 18:07:05

标签: objective-c nsurlconnection

当我尝试识别NSURLConnection时,我遇到了一些问题。 imgConnectionxmlConnection时,无法识别- (void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { if (connection == xmlConnection) { [dataFinale appendData:data]; NSLog(@"XML"); } else if (connection == imgConnection){ [imgData appendData:data]; NSLog(@"IMG"); } } NSURLRequest *requestImg = [NSURLRequest requestWithURL:urlImg cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60]; imgConnection = [NSURLConnection connectionWithRequest:requestImg delegate:self];

{{1}}

0 个答案:

没有答案