//You will get a Class by sending class method class to a classif [obj isKindOfClass:[NSString class]]{ [obj ...];}else if([obj respondsToSelect:@selector(shoot:)]){ //no matter what obj is [obj shoot]; // if obj has shoot method ,it can be excuted }//SEL is a typeSEl shootSelecor = @selector(shoot:);