justskilled
1/17/2018 - 1:43 AM

Snippet For iOS

Backup

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    
    if (self.fromResultView) {
        NSMutableArray *array = [[NSMutableArray alloc]initWithArray:self.navigationController.viewControllers];
        if (array.count >= 3) {
            [array removeObjectsInRange:NSMakeRange(array.count - 3, 2)];
            self.navigationController.viewControllers = array;
        }
        self.fromResultView = NO;//保证只允许一次
    }
}