Method class_getClassMethod(Class cls, SEL name);
第一个参数:获取该方法的类
第二个参数:方法声明
返回值:method
实例
Method method1 = class_getClassMethod([MyViewController class], @selector(run));
Method method2 = class_getClassMethod([Test class], @selector(change));
method_exchangeImplementations(method2, method1);//交换method2与method1的方法实现
(需要注意的是: class_getClassMethod是获取该类的类方法,不会获取实例方法。获取实例方法需要用class_getInstanceMethod(<#__unsafe_unretained Class cls#>, <#SEL name#>),
)