-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{
[connection release];
[receivedData release];
[theRequest release];
//NSLog(@"Connection failed! Error - %@ %@"),[error localizedDescription],[[error userInfo]objectForKey:NSErrorFailingURLStringKey]);
if(errorCallback)
{
[delegate performSelector:errorCallback withObject:error];
}
}
答案 0 :(得分:4)
//NSLog(@"Connection failed! Error - %@ %@"),[error localizedDescription],[[error userInfo]objectForKey:NSErrorFailingURLStringKey]);
应
//NSLog(@"Connection failed! Error - %@ %@",[error localizedDescription],[[error userInfo]objectForKey:NSErrorFailingURLStringKey]);