johnno1962 / injectionforxcode

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

hello,The get method is invalid #150

Closed biggercoffee closed 8 years ago

biggercoffee commented 8 years ago

getter method is invalid.

before 9b8674c9-6627-437e-8fc3-001bafa938b5

after ba89191f-6e55-4bd2-b938-917b8835690d

johnno1962 commented 8 years ago

HI, This sounds like it might be a problem. Can you explain more please.

biggercoffee commented 8 years ago

I have a detail viewcontroller from rootviewcontroller push in, Call Model to display the viewcontroller. Input a NSLog in the get method of the model, and then type the control + '=', prompt success, but the actual failure.

johnno1962 commented 8 years ago

Ah, I see now. Injection does not inject getters or setters on properties.

biggercoffee commented 8 years ago

oh,Is this a bug??? Is there a way to solve???

johnno1962 commented 8 years ago

This is done on purpose as it seemed unnecessary

biggercoffee commented 8 years ago

ok, thanks