iOS侧滑返回

2016-10-29  本文已影响42人  LUJQ

如果系统的侧滑返回用不了了,可以尝试以下方法:

1

  __weak typeof (self) weakSelf = self;

if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {

self.navigationController. interactivePopGestureRecognizer.delegate = weakSelf;

}

self.navigationController.interactivePopGestureRecognizer.enabled=YES;

百度知道团队的全屏侧滑返回

上一篇 下一篇

猜你喜欢

热点阅读