//获取类 方法
Method method =class_getInstanceMethod([UIView class], @selector(initWithFrame:));
// 替换 系统内部方法
Method new =class_getInstanceMethod([UIButton class], @selector(buttonWithType:));
method_setImplementation(method, method_getImplementation(new));
// 两个方法交换实现
// method_exchangeImplementations(<#Method m1#>, <#Method m2#>)