diff --git a/minjection/Classes/MinjectionOptions.m b/minjection/Classes/MinjectionOptions.m index 4d955a9..3bde33d 100644 --- a/minjection/Classes/MinjectionOptions.m +++ b/minjection/Classes/MinjectionOptions.m @@ -138,7 +138,9 @@ - (void) postInjectWithSelector:(SEL)sel self.postInjectionExecutor = [^(id target, MinjectionContainer * container) { if([target respondsToSelector:sel]) { - [target performSelector:sel]; + IMP imp = [target methodForSelector:sel]; + void (*func)(id, SEL) = (void *)imp; + func(target, sel); } else {