NavigationContainer icon indicating copy to clipboard operation
NavigationContainer copied to clipboard

pop失效

Open winfredgit opened this issue 7 years ago • 4 comments

navigationController popToRootViewControllerAnimated:YES

winfredgit avatar Aug 14 '18 06:08 winfredgit

能否提供一下你的demo,我提供的demo中是没问题的啊

xiaopin avatar Aug 14 '18 07:08 xiaopin

这样的话,你先把宏定义注释掉,看下是否正常,如果正常,则说明是你的CustomNavigationController有做了什么定制,而我并没有考虑到的东西。

xiaopin avatar Aug 14 '18 07:08 xiaopin

好的感谢支持,我尝试过后再告诉你

winfredgit avatar Aug 14 '18 07:08 winfredgit

我测出一种场景,就是你的项目其他地方也 hook 了 popToRootViewControllerAnimated: 这个方法,而且刚好新方法名也是 xp_popToRootViewControllerAnimated:,和我的方法出现冲突了,导致我的方法不会被调用。建议你搜索下你的项目是否存在多个xp_popToRootViewControllerAnimated :方法实现。

xiaopin avatar Aug 14 '18 07:08 xiaopin