在cocos2dx界面弹出一个IOS的UIView

点击cocos2dx按钮,想实现弹出一个iOS的UIView视图,但一直闪退,也捕捉不到崩溃日志
部分代码如下:
UIWindow * _videowin = [[UIApplication sharedApplication] keyWindow];
if (!_view)
{
_view = [[UIView alloc] initWithFrame:rect];
}
_view.hidden = YES;
[_view setBackgroundColor:[UIColor whiteColor]];
[_view setUserInteractionEnabled:NO];
//CGRect frameRect = [[UIScreen mainScreen] bounds];
[_videowin.rootViewController.view addSubview:_view];

_closeButton = [[UIButton alloc] initWithFrame:CGRectMake(240, 160, 60, 30)];
[_closeButton setTitle:@"关闭" forState:UIControlEventTouchUpInside];
[_closeButton addTarget:self action:@selector(ClosePlayerView) forControlEvents:UIControlEventTouchUpInside];
[_view addSubview:_closeButton];