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

前端 未结 11 990
清酒与你
清酒与你 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:47

    You're allocating the RootViewController right there. It does not exist in the navigation controller's stack, so no matter how far you pop, you won't reach it.

提交回复
热议问题