我已经更新到 IOS 13,现在,我无法使用左滑动转到导航控制器中的上一个视图控制器。
你能建议如何解决这个问题吗?
谢谢
如果您在模态中难以显示UINavigationController
,您可以尝试以下操作:
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
self.navigationController.interactivePopGestureRecognizer.delegate = self;
}
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return gestureRecognizer == self.navigationController.interactivePopGestureRecognizer;
}