美文网首页
iOS Unbalanced calls to begin/en

iOS Unbalanced calls to begin/en

作者: 周无恋 | 来源:发表于2017-06-17 08:28 被阅读0次

出现这个警告的一半原因是,上一个uivewcontroller的动画没做完,导致下一个的页面无法顺利压栈,这个只需要上一个页面返回的时候不要做动画就可以了。


[self.navigationController popToRootViewControllerAnimated:YES];

self.tabBarController.selectIndex = 1;

当参数为YES时,会报这个警告

[self.navigationController popToRootViewControllerAnimated:  NO];

self.tabBarController.selectIndex = 1;


便可以解决.

最后,希望这篇文章能帮到你。

相关文章

网友评论

      本文标题:iOS Unbalanced calls to begin/en

      本文链接:https://www.haomeiwen.com/subject/rxyvqxtx.html