“Application tried to present modally an active controller”?

后端 未结 8 1338
孤城傲影
孤城傲影 2020-11-29 02:20

I just came across a crash showing a NSInvalidArgumentException with this message on an app which wasn\'t doing this before.

Application

8条回答
  •  攒了一身酷
    2020-11-29 03:02

    I have the same problem. I try to present view controller just after dismissing.

    [self dismissModalViewControllerAnimated:YES];
    

    When I try to do it without animation it works perfectly so the problem is that controller is still alive. I think that the best solution is to use dismissViewControllerAnimated:completion: for iOS5

提交回复
热议问题