想要在类中查看每个事件以后所响应的方法,delegate等信息,就可以在方法中加入以下的方法
- (BOOL)respondsToSelector:(SEL)selector
{
NSLog(@"%s respondsToSelector: %s", __FILE__, selector);
return [super respondsToSelector:selector];
}
- (NSMethodSignature*)methodSignatureForSelector:(SEL)selector
{
NSLog(@"%s methodSignatureForSelector: %s", __FILE__, selector);
return [super methodSignatureForSelector:selector];
}
- (void)forwardInvocation:(NSInvocation*)invocation
{
NSLog(@"%s forwardInvocation: %s", __FILE__, [invocation selector]);
[super forwardInvocation:invocation];
}