标签:ios hierarchy uiviewcontroller 界面
UIViewController 显示的主页面 添加了一个scrollView[self addChildViewController:_attention]; [self addChildViewController:_allControll];
<img src="http://img.blog.csdn.net/20150414164759227?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMDA3MDUyNg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
改后运行,有效果,但输出台显示如下,
Presenting view controllers on detached view controllers is discouraged <AttentionController: 0x7ff9d40376c0>.
此时应该回到被选中的cell时,添加父controll
[self.parentViewController presentViewController:listVC animated:YES completion:nil];
Warning: Attempt to present A on B whose view is not in the window hierarchy!
标签:ios hierarchy uiviewcontroller 界面
原文地址:http://blog.csdn.net/u010070526/article/details/45043639