-(BOOL) Iskindofclass:classobj to determine if this class or subclass of this class is an instance of
-(BOOL) ismemberofclass:classobj to determine if it is an instance of this class
--------------------------
-(BOOL) Respondstoselector:selector
+ (BOOL) instancesrespondtoselector:selector
Instancesrespondtoselector can only be written after the class name, and Respondstoselector may be written after the class name and the instance name.
[Class Instancesrespondtoselector] Determines whether an instance of the class contains a method, equivalent to: [Instance of the class Respondstoselector].
[Class Respondstoselector] is used to determine whether a class method is included.
-----------
-(ID) Performselector:selector calls the selector specified by this object
And the difference between direct calls:
Performselector is the runtime system is responsible for looking for methods, at compile time do not do any validation, if the direct call to compile is automatically verified.
When calling the method directly, be sure to declare the use of the method in the header file, and import the header file into it. While using Performselector, you can use the import header file to include the object of the method, directly
Performselector call.
IOS--DAY06----iskindofclass ismemberofclass Dynamic identification (dynamics types)