-
Creator 版本:2.0。10
-
目标平台: iOS 模拟器
-
详细报错信息,包含调用堆栈:
-
重现方式:我仿照前人弄啦分两个UIView,黑屏啦(下面有修改代码)
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :
-
出现概率:
-
额外线索:
_viewController = [[RootViewController alloc]init];
_viewController.view.backgroundColor = [UIColor clearColor];
_viewController.view.tag = 3;
UIViewController* uiVC = [[UIViewController alloc] initWithNibName:nil bundle:nil];
uiVC.view.backgroundColor = [UIColor redColor];
uiVC.view.frame = [UIScreen mainScreen].bounds;
_videoView = [[UIView alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
_videoView.tag = 1; //设置tag以便之后把Video层取出来~
_videoView.backgroundColor = [UIColor blueColor];
[uiVC.view addSubview:_videoView];
[uiVC.view addSubview:_viewController.view];
#ifdef NSFoundationVersionNumber_iOS_7_0
_viewController.automaticallyAdjustsScrollViewInsets = NO;
_viewController.extendedLayoutIncludesOpaqueBars = NO;
_viewController.edgesForExtendedLayout = UIRectEdgeAll;
#else
_viewController.wantsFullScreenLayout = YES;
#endif
// Set RootViewController to window
if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
{
// warning: addSubView doesn’t work on iOS6
[window addSubview: uiVC.view];
}
else
{
// use this method on ios6
[window setRootViewController:uiVC];
}