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

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

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

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

posted @ 2016-07-13 18:59  GnodUxn  阅读(1844)  评论(0编辑  收藏  举报