iOS 将系统生命周期的方法与自己的方法调整执行顺序

2019-07-09  本文已影响0人  乔帮主123

MethodappearMethod =class_getInstanceMethod([selfclass],@selector(viewDidAppear:));

MethodhookMethod =class_getInstanceMethod([selfclass],@selector(xxx_viewDidAppear:)); method_exchangeImplementations(appearMethod, hookMethod);

上一篇下一篇

猜你喜欢

热点阅读