MethodappearMethod =class_getInstanceMethod([selfclass],@selector(viewDidAppear:));
MethodhookMethod =class_getInstanceMethod([selfclass],@selector(xxx_viewDidAppear:)); method_exchangeImplementations(appearMethod, hookMethod);
MethodappearMethod =class_getInstanceMethod([selfclass],@selector(viewDidAppear:));
MethodhookMethod =class_getInstanceMethod([selfclass],@selector(xxx_viewDidAppear:)); method_exchangeImplementations(appearMethod, hookMethod);
本文标题:iOS 将系统生命周期的方法与自己的方法调整执行顺序
本文链接:https://www.haomeiwen.com/subject/itufkctx.html
网友评论