YPNavigationBarTransition icon indicating copy to clipboard operation
YPNavigationBarTransition copied to clipboard

请问继承了YPNavigationController的导航控制器应该怎么处理全屏滑动返回呢

Open Ssiswent opened this issue 3 years ago • 7 comments

使用原生的方式会闪退: BaseNavigationController handleNavigationTransition:]: unrecognized selector sent to instance 0x105027200" 是否是因为这个框架修改了UINavigationController.interactivePopGestureRecognizer.delegate的值呢 是的话请问是哪个值呢,谢谢

Ssiswent avatar Mar 24 '21 05:03 Ssiswent

没有修改,你自己设置

yiplee avatar Mar 24 '21 06:03 yiplee

这里是在根导航栏控制器设置的代码: image 如果我把根导航栏控制器设置为YPNavigationController的话,会崩溃: image 设置为UINavigationController则不会崩溃。

Ssiswent avatar Mar 24 '21 06:03 Ssiswent

然后我在这个项目发现他也遇到了这个问题,并且得到了解决方案,猜测或许是因为你也进行了类似的修改。 https://github.com/Tencent/QMUI_iOS/issues/920

Ssiswent avatar Mar 24 '21 06:03 Ssiswent

你直接继承 UINavigationController 正常吗?

On Wed, Mar 24, 2021 at 2:08 PM Ssiswent @.***> wrote:

然后我在这个项目发现他也遇到了这个问题,并且得到了解决方案,猜测或许是因为你也进行了类似的修改。 https://github.com/Tencent/QMUI_iOS/issues/920

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yiplee/YPNavigationBarTransition/issues/59#issuecomment-805529371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK5UDPCSTFCK23EWBLADWTTFF6XHANCNFSM4ZWSCXOQ .

yiplee avatar Mar 24 '21 06:03 yiplee

是正常的= = 正常

Ssiswent avatar Mar 24 '21 06:03 Ssiswent

或者说有没有什么其他方法可以做到全屏优化返回呢

Ssiswent avatar Mar 24 '21 06:03 Ssiswent

https://github.com/yiplee/YPNavigationBarTransition/blob/master/YPNavigationBarTransition/YPNavigationController.m#L39

主要是这一行,把这个 delegate 设置成了当前 navigation controller

On Wed, Mar 24, 2021 at 2:22 PM Ssiswent @.***> wrote:

或者说有没有什么其他方法可以做到全屏优化返回呢

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yiplee/YPNavigationBarTransition/issues/59#issuecomment-805536253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK5UDKQZZQBWPD23CCPGUDTFGAMBANCNFSM4ZWSCXOQ .

yiplee avatar Mar 24 '21 06:03 yiplee