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

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

作者: 乔帮主123 | 来源:发表于2019-07-09 18:19 被阅读0次

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