你是否为反反复复地运行程序看效果而烦恼?
你是否为程序运行花费大量的时间而头疼?
你是否为安卓拥有即时显示效果的Preview而羡慕?
现在你不用烦、不用愁,有了Injectionlll让你开发事半功倍,让你即时看到修改代码的页面效果,Injectionlll为你节省大量时间,让你开发更顺心,心情更愉悦,从而让你升职加薪、迎娶白富美、走向人生巅峰。Injectionlll你值得拥有!
好好看效果:
效果图:
Injectionlll下载地址
***https://itunes.apple.com/us/app/injectioniii/id1380446739?ls=1&mt=12
或者直接在Mac上的App Store上搜索即可。
使用方法
在工程里写入一下代码
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle"] load];
return YES;
}
/************************************************************/
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.view.backgroundColor = [UIColor greenColor];
UIButton * redBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[self.view addSubview:redBtn];
redBtn.backgroundColor =[UIColor redColor];
redBtn.frame = CGRectMake(100, 100, 100, 100);
redBtn.backgroundColor = [UIColor yellowColor];
}
-(void)injected{
NSLog(@"I've been injected: %@", self);
NSLog(@"这里调用修改页面布局的代码,如这里调用了viewDidLoad方法");
[self viewDidLoad];
}
****本篇文章到这里就结束了,愿大家加班不多工资多,男同胞都有女朋友,女同胞都有男朋友。😊***