我有Xamarin Native(iOS / Droid)应用。在较旧的iOS版本中,可以通过向右滑动一个动画来拖动回到屏幕上的当前视图,从而导航回以前的viewControllers。当更新到最新的iOS 13时,此动画不再显示。也不会调用ViewWillDissapper。我想念什么?
我已经尝试过此更改:
this.ModalInPresentation = true;
this.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
NavigationController.InteractivePopGestureRecognizer.Enabled = true;
NavigationController.InteractivePopGestureRecognizer.Delegate = new MyGestureDelegate();
在iOS 13中,您可以在Previous ViewController中进行如下设置:
UIViewControllerSecond viewControllerSecond = new UIViewControllerSecond();
viewControllerSecond.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
viewControllerSecond.ModalTransitionStyle = UIModalTransitionStyle.FlipHorizontal;
PresentViewController(viewControllerSecond, true, null);
然后在[[second ViewController中返回DismissModalViewController(true);
。