Getting Class Delegates in Time

Today I got to know how to get the delegate methods of a class and when they are incoming. You only have to copy this method into your class and look at the log when the class is initialized / running.

 

- (BOOL)respondsToSelector:(SEL)aSelector
{
    NSString *methodName = NSStringFromSelector(aSelector);
    NSLog(@"respondsToSelector: %@", methodName);
    return [super respondsToSelector:aSelector];
}