'Tried to pop to a view controller that doesn't exist.'

前端 未结 11 807
清酒与你
清酒与你 2021-02-05 12:13

I am getting this error when I call my method dismissView. Here is the method stub:

-(IBAction)dismissView
{
    RootViewController *rootController = [[RootViewC         


        
11条回答
  •  无人共我
    2021-02-05 12:37

    I had this problem recently and solved with something like this...

    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
    

提交回复
热议问题