While an existing transition or presentation is occurring; the navigation stack will not be updated

前端 未结 6 1196
孤城傲影
孤城傲影 2021-02-01 16:36

I have encountered this warning:

pushViewController:animated: called on while an existing transition or presentation is occurring; the navigation stack

6条回答
  •  迷失自我
    2021-02-01 17:05

    My Solution would be to call dismissViewControllerAnimated: first and then pop the viewcontroller from navigation stack this works for me :-

    [self dismissViewControllerAnimated:false completion:nil];
    [myNavigationControllerInstance popToRootViewControllerAnimated:true]; // myNavigationControllerInstance = Your Navigation Controller Instance
    

提交回复
热议问题