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

你好 问个问题 #1

Open
jj89757hhb opened this issue Aug 14, 2017 · 2 comments
Open

你好 问个问题 #1

jj89757hhb opened this issue Aug 14, 2017 · 2 comments

Comments

@jj89757hhb
Copy link

#pragma mark - Method Swizzling

  • (void)swiz_viewWillAppear:(BOOL)animated
    {
    //插入需要执行的代码
    [self inject_viewWillAppear];
    [self swiz_viewWillAppear:animated];
    }

  • (void)swiz_viewWillDisappear:(BOOL)animated
    {
    [self inject_viewWillDisappear];
    [self swiz_viewWillDisappear:animated];
    }
    你这个写法是不是一个死循环吗? 自己调用自己

@YoungLiu666
Copy link
Owner

这里调用的是原来的系统方法

@jj89757hhb
Copy link
Author

我咋感觉是死循环呀

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

2 participants