Is there any way to check whether a protocol contains certain method or whether a method belongs to certain protocol in Objective-C?
I don't think the redirected question is the same as mine. What I want is:
[MyProtocol containsSelector:@selector(MySelector)];
Or
[MySelector isMethodOfProtocol:@protocol(MyProtocol)];