如何从弹出视图中展开后,在UINavigationController中完全重新启用后退/左手滑动手势?

时间:2017-07-23 17:39:34

标签: ios swift uinavigationcontroller uinavigationbar

从弹出视图中退出后,我的后退/左手滑动手势消失了。我修复了:

override func viewDidLoad() {
  super.viewDidLoad()
  reenableSwipeBack()
}

func reenableSwipeBack() {
  self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true;
  self.navigationController?.interactivePopGestureRecognizer?.delegate = nil;
}

我的滑动手势又回来但没有动画(显示here(Giphy))。如何恢复手势动画?

0 个答案:

没有答案