1、静态方法
Method m1 = class_getClassMethod([self class], @selector(run));
Method m2 = class_getClassMethod([self class], @selector(study));
method_exchangeImplementations(m1, m2);
[self.class run];
[self.class study];
2、成员方法
Method m3 = class_getInstanceMethod([self class], @selector(eat));
Method m4 = class_getInstanceMethod([self class], @selector(bite));
method_exchangeImplementations(m3, m4);
[self eat];
[self bite];