@leaveMeAlone wrote:
void MyHookMessageEx(Class aClass ,SEL oldSEL ,IMP imp1 ,IMP* imp2)
{
Method oldMethod = class_getInstanceMethod(aClass, oldSEL);
*imp2 = method_getImplementation(oldMethod);
method_setImplementation(oldMethod, imp1);
}
为什么这样写的不起作用呢
Posts: 1
Participants: 1