Open jj89757hhb opened 7 years ago
(void)swiz_viewWillAppear:(BOOL)animated { //插入需要执行的代码 [self inject_viewWillAppear]; [self swiz_viewWillAppear:animated]; }
(void)swiz_viewWillDisappear:(BOOL)animated { [self inject_viewWillDisappear]; [self swiz_viewWillDisappear:animated]; } 你这个写法是不是一个死循环吗? 自己调用自己
这里调用的是原来的系统方法
我咋感觉是死循环呀
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]; } 你这个写法是不是一个死循环吗? 自己调用自己