johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 565 forks source link

it doesn't work without function "func injected(){ viewdidload() }" #155

Open Owen0603 opened 7 years ago

Owen0603 commented 7 years ago

I want to konw if i don't add function "injected(){ viewdidload() }",Can it refresh view?

johnno1962 commented 7 years ago

Hi, we could automate this if the class being injected was a UIVIewController subclass but it seemed a little too like “magic” that could confuse people when we looked at it.