Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aspects how to hook instance method for all concrete class instances? #179

Open
dehengxu opened this issue Jun 15, 2022 · 3 comments
Open

Comments

@dehengxu
Copy link

No description provided.

@Frizlab
Copy link

Frizlab commented Jun 15, 2022

If I’m not mistaking that’s method-swizzling, not isa-swizzling. Aspects is about isa-swizzling AFAIK, not method-swizzling.

@ACEis
Copy link

ACEis commented Jan 3, 2023

try to use like

[UIViewController aspect_hookSelector:@selector(viewWillLayoutSubviews) withOptions:0 usingBlock:^{
    NSLog(@"Controller is layouting!");
} error:NULL];

@godLoveY
Copy link

godLoveY commented Jan 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants