Does a comparable function to ‘isKindOfClass:‘ exist for comparing a ‘Class’ to another (i.e. without constructing an instance of either class). For example, given:
Class class = NSClassFromString(@"NSNumber");
[NSNumber isKindOfClass:class]; // YES
[NSString isKindOfClass:class]; // NO
Thanks!
+ (BOOL)isSubclassOfClass:(Class)aClassand
There is never more than 1 instance of a class, that’s why
==is the operator you’re looking for.