首页 > 其他 > 详细

Presenting view controllers on detached view controllers is discouraged

时间:2016-08-18 15:57:00      阅读:219      评论:0      收藏:0      [点我收藏+]

出现这个警告的原因是presentViewController的receiver是一个detached view controller。比方说:window有一个root view controller,然后我们把某个view controller(VC1)的view添加到了root view controller的subview上面,然后在VC1上面presentViewController。这时我们需要将VC1添加到root view controller的childController里面去。

Presenting view controllers on detached view controllers is discouraged

原文:http://www.cnblogs.com/wkdwangjun/p/5784165.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!