我在NSLog上有一个错误,为什么它不起作用?

时间:2011-06-17 07:23:34

标签: xcode

-(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];
    }
}

1 个答案:

答案 0 :(得分:4)

//NSLog(@"Connection failed! Error - %@ %@"),[error localizedDescription],[[error userInfo]objectForKey:NSErrorFailingURLStringKey]);

//NSLog(@"Connection failed! Error - %@ %@",[error localizedDescription],[[error userInfo]objectForKey:NSErrorFailingURLStringKey]);