johnno1962 / injectionforxcode

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

crash in this case #201

Closed SilenceLee17 closed 7 years ago

SilenceLee17 commented 7 years ago

I have a view that contains an array called 'contentView' . Crash at [[self contentView] superview]

johnno1962 commented 7 years ago

Are you using an -injected method? Best to rename the property if possible as the “sweep” for instances to notify uses this method name as well. Ohterwise you can use the INJECTION_BUNDLE_NOTIFICATION notification instead of instance level -injected.

SilenceLee17 commented 7 years ago

Thx : )