是否可以仅覆盖现有委托的某些功能,而我们自己却完全不是委托?
我尝试用我的替换目标 IMP,没有工作:'(
更多详情:
+[SomeClass sharedDelegate]
-[sharedDelegate targetMethodToBeOverridden:Arg:] //OUR method needs to be called, not this
Method *targetMethod; // targetMethodToBeOverridden identified by class_copymethodlist magic
targetMethod->method_imp = [self methodForSelector:@selector(overriddenDelegateMethod:Arg:)];
不工作!我的方法没有被调用:(