I have a Class (but no instance) and need to know if it conforms to a certain protocol. However, Class can be subclassed several times and class_conformsToProtocol() ignores
Or, in case it is a general pointer, like:
Class<MyProtocol> someClassPointer = nil;
you can use:
[someClassPointer.class conformsToProtocol:@protocol(MyProtocol)];
According to the docs,
[MyClass conformsToProtocol:@protocol(MyProtocol)];
should work.