- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];

// 禁用 iOS7 返回手势
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
}

- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];

// 开启
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}
}

相关文章:

  • 2022-01-30
  • 2021-11-28
  • 2021-05-25
  • 2021-12-06
  • 2022-02-08
  • 2021-12-07
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2021-12-17
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-12-04
相关资源
相似解决方案