cocos creator 打iOS包想让视频上加UI显示

  • 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];
}

我看的这个链接改的http://www.cocoachina.com/bbs/read.php?tid-290869-toread-1-page-1.html。希望大神能指点下,现在改完出现黑屏

模拟器是先闪下紫色在边黑屏

请问解决了吗

ios 的话 需要改一下代码 渲染的支持颜色