0
Lib xml 파서에 문제가 하나 있습니다.Lib xml 대리자 선택기가 작동하지 않습니다.
최종 문서에서 아래의 코드는 내가 위의 코드에서 오류가 발생한 상태에서 주석 여기
-(void)endDocument
{
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:@"Failed with 404 or 500"
forKey:@"error_message"];
NSError *error = [NSError errorWithDomain:@"ParsingDomain"
code:500
userInfo:userInfo];
SEL selector = @selector(parse:encounteredError: forId: forObj:);
NSMethodSignature *sig = [(id)self.delegate methodSignatureForSelector:selector];
if(nil != sig && [self.delegate respondsToSelector:selector]) // this codition is failed
{
printf("\n In the selector invocation");
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:sig];
[invocation retainArguments];
[invocation setTarget:self.delegate];
[invocation setSelector:selector];
[invocation setArgument:&self atIndex:2];
[invocation setArgument:&error atIndex:3];
[invocation setArgument:&Id atIndex:4];
[invocation setArgument:&obj atIndex:5];
[invocation performSelectorOnMainThread:@selector(invoke) withObject:NULL waitUntilDone:NO];
}
}
입니다.
고맙습니다. Madan mohan. encounteredError : FORID :