“Application tried to present modally an active controller”?

后端 未结 8 1340
孤城傲影
孤城傲影 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:19

    Just remove

    [tabBarController presentModalViewController:viewController animated:YES];
    

    and keep

    [self dismissModalViewControllerAnimated:YES];
    

提交回复
热议问题