捕获原生NavigationBar导航栏返回的Action

捕获原生返回

- (void)viewWillDisappear:(BOOL)animated
{
  if ([self.navigationController.viewControllers indexOfObject:self]==NSNotFound) {
  //用户点击了返回按钮
  }
  [super viewWillDisappear:animated];
}

你可能感兴趣的:(捕获原生NavigationBar导航栏返回的Action)