使用UIAlertController提示信息,在之后使用navigation进行逻辑跳转时,出现popToViewController:transition: called on <UINavigationController 0x7fc27b8ac000> while an existing transition or presentation is occurring; the navigation stack will not be updated.错误。如图:

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

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

原因:dismiss操作完成之前不能进行出栈、入栈操作。

解决方法:使用block回调在dismiss操作完成之后做回调,在回调中执行出栈、入栈。

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

相关文章:

  • 2021-07-15
  • 2021-12-03
  • 2021-12-16
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-08-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-02-20
  • 2021-11-18
  • 2021-06-28
  • 2022-01-02
相关资源
相似解决方案