How do I test whether an object is an instance of a particular class in Objective-C? Let\'s say I want to see if object a is an instance of class b, or class c, how do I go
If you want to check for a specific class then you can use
if([MyClass class] == [myClassObj class]) { //your object is instance of MyClass }