injectionforxcode icon indicating copy to clipboard operation
injectionforxcode copied to clipboard

injection just call -(void)injected

Open zkhCreator opened this issue 6 years ago • 4 comments

I installed injectionIII, and ran a new project.When I press command + s, the method -(void)injected called, but viewdidload are not called.How can I reload all code?

zkhCreator avatar Jun 13 '18 08:06 zkhCreator

Have you added the required lines to AppDelegate.swift?

johnno1962 avatar Jun 13 '18 10:06 johnno1962

I add load bundle in AppDelegate.m

zkhCreator avatar Jun 14 '18 06:06 zkhCreator

You have to code a call to viewDidLoad in your injected method.

johnno1962 avatar Jun 14 '18 13:06 johnno1962

If the reason is it isn't support objc? And what can I do if I wan't to call viewWillAppear and viewDidAppear after viewDidload? Only call these method in injected method?

zkhCreator avatar Jun 15 '18 01:06 zkhCreator