Presenting view controllers on detached view controllers is discouraged

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

posted @ 2016-08-18 15:47  wkdwangjun  阅读(212)  评论(0编辑  收藏  举报