开发者

i have an error on NSLog why it's not working?

开发者 https://www.devze.com 2023-03-13 10:33 出处:网络
-(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{ [connection release];
-(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)
    {
       开发者_StackOverflow中文版 [delegate performSelector:errorCallback withObject:error];
    }
}


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

Should be

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

精彩评论

暂无评论...
验证码 换一张
取 消