码迷,mamicode.com
首页 > 其他好文 > 详细

在ViewDidLoad中往导航栈推ViewController报错

时间:2015-09-18 13:33:50      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

 Unbalanced calls to begin/end appearance transitions for <YZPMainViewController: 0x7fa04b4970f0>.

 Terminating app due to uncaught exception ‘NSInvalidArgumentException‘, reason: ‘Application tried to present modally an active controller <UINavigationController: 0x7fd65a80ce00>.‘

在ViewController中添加模态视图或者push时会报上面的错误,应该在viewDidAppear中调用

 

在ViewDidLoad中往导航栈推ViewController报错

标签:

原文地址:http://www.cnblogs.com/5ishare/p/4818863.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!