iOS isKindOfClass
In Cocoa, almost all classes inherit from NSObject
.
That means that NSObject
is ‘the superclass’, and (almost) the rest of the classes are subclasses of NSObject
.
isKindOfClass:
Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits from that class.
or
Let's grow together 🌱
Cheers 🍻