From 5bd0eab8e7de26dec81e90ee4b31e6d4f64686ed Mon Sep 17 00:00:00 2001 From: Leo Lee Date: Thu, 28 Dec 2023 14:39:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=85=A8=E5=B1=8F=E6=89=8B=E5=8A=BF=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E5=90=8E=E4=BB=8E=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=97=B6=EF=BC=8C=E5=85=A8=E5=B1=8F=E6=89=8B=E5=8A=BF?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core/UINavigationController+NXNavigationExtension.m | 2 -- .../Core/UIViewController+NXNavigationExtension.m | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NXNavigationExtension/Core/UINavigationController+NXNavigationExtension.m b/NXNavigationExtension/Core/UINavigationController+NXNavigationExtension.m index e447507..0390d85 100644 --- a/NXNavigationExtension/Core/UINavigationController+NXNavigationExtension.m +++ b/NXNavigationExtension/Core/UINavigationController+NXNavigationExtension.m @@ -148,8 +148,6 @@ + (void)load { if (selfObject.viewControllers.count > 0) { [viewController nx_configureNavigationBarWithNavigationController:selfObject]; } - // 重新检查返回手势是否动态修改 - [selfObject nx_configureInteractivePopGestureRecognizerWithViewController:viewController]; UIViewController *appearingViewController = viewController; [selfObject nx_transitionViewController:appearingViewController navigationTransitionState:NXNavigationTransitionStateWillPush]; diff --git a/NXNavigationExtension/Core/UIViewController+NXNavigationExtension.m b/NXNavigationExtension/Core/UIViewController+NXNavigationExtension.m index 28d6c62..f0883ac 100644 --- a/NXNavigationExtension/Core/UIViewController+NXNavigationExtension.m +++ b/NXNavigationExtension/Core/UIViewController+NXNavigationExtension.m @@ -194,6 +194,8 @@ + (void)load { [selfObject nx_updateNavigationBarSubviewState]; // perf: 当前 ViewController 以及展示完成,可以检查 NXNavigationVirtualWrapperView 是否存在 [selfObject nx_checkNavigationVirtualWrapperViewState]; + // fixed: 从其他页面返回时全屏手势无法生效问题 + [selfObject.navigationController nx_configureInteractivePopGestureRecognizerWithViewController:selfObject]; } });