iOS原生开发热重载

2021-03-19  本文已影响0人  liboxiang

github: https://github.com/johnno1962/InjectionIII
别人的介绍文章:https://www.jianshu.com/p/0489c654657d

使用步骤:

#if DEBUG
[[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle"] load];
#endif

有些方法不能动态调用刷新页面的,可以通过添加- (void)injected方法进行动态调用

- (void)injected{
//保存代码后会跑到执行此处代码
    [self refresh];
}
上一篇 下一篇

猜你喜欢

热点阅读