Please explain the meaning of the second if statement.
What i am asking is that meaning of if([self.delegate textFieldShouldClear:self]) <-- This line
SEL clearselector = @selector(textFieldShouldClear:);
if([self.delegate respondsToSelector:clearselector]){
if([self.delegate textFieldShouldClear:self]){// (Explain This If please)?
NSLog(@"Delegate Methods");
self.txtRef.text = @"";
}
}
Thanks in advance.