gliubc
6/19/2019 - 7:15 AM

navigationShouldPopOnBackButton

/// 导航返回时跳过的控制器数目
@property (assign, nonatomic) NSInteger navSkipCount;

- (BOOL)navigationShouldPopOnBackButton {
    NSArray *navStack = self.navigationController.viewControllers;
    [self.navigationController popToViewController:navStack[navStack.count - 2 - self.navSkipCount] animated:YES];
    return NO;
}