2011-06-17 39 views
-2
-(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

和錯誤是....? – 2011-06-17 07:26:51

回答

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

應該

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