iOS injectionIII

injectionlll的快速开发UI秒刷新,提高开发效率

1.injection链接使用教程

2.下载方式可以到APPStore搜索“injection”之后打开在电脑的状态栏有这个标记是蓝色项目调用之后链接成功就是下图一样红色

3.打开Mac APP injectionIII, 点击Mac 桌面的injectionIII 图标-> Open Recent -> 选择你的项目 ,最后再选择FileWatcher(有对号即可);

4.在项目的AppDelegate.m中的- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {

    // Override point for customization after application launch.


#if DEBUG

    //    for iOS开发

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

    //    for tvOS手表开发

    [[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/tvOSInjection.bundle"] load];

    //    for masOS-Mas开发

    [[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle"] load];

#endif

    return YES;

}

iOS injectionIII_第1张图片

5.然后在ViewController.m文件中

iOS injectionIII_第2张图片

//执行快捷键: COMMAND + S 就可看到 变蓝色了//在下面的方法实现你的要修改的逻辑

- (void)injected

{

    NSLog(@"I've been injected: %@", self);

    self.view.backgroundColor = [UIColor blueColor];

}

你可能感兴趣的:(iOS injectionIII)