Aspects how to hook instance method for all concrete class instances?
dehengxu opened this issue · comments
DehengXu commented
Aspects how to hook instance method for all concrete class instances?
François Lamboley commented
If I’m not mistaking that’s method-swizzling, not isa-swizzling. Aspects is about isa-swizzling AFAIK, not method-swizzling.
ACEis commented
try to use like
[UIViewController aspect_hookSelector:@selector(viewWillLayoutSubviews) withOptions:0 usingBlock:^{
NSLog(@"Controller is layouting!");
} error:NULL];
godLoveY commented
您好,邮件已收到