您的位置:首页 > 其它

关于presentViewController可能会出现的问题

2017-04-24 21:17 363 查看
原文链接:stackoverflow

当在
viewDidLoad
方法里面执行
[self presentViewController:]
时,会出现如下的报错

Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the window hierarchy!


解决方法:可在
viewDidAppear
方法里执行
presentViewController:]
方法,但可能会出现其他的问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  stack overflow