2
我需要播放视频到cocos2d的项目..和我的问题是:我怎么能放的MPMoviePlayerController进入我的看法是这样:?的MPMoviePlayerController到视图
UIView *theView = [[CCDirector sharedDirector] openGLView];
非常感谢!
我需要播放视频到cocos2d的项目..和我的问题是:我怎么能放的MPMoviePlayerController进入我的看法是这样:?的MPMoviePlayerController到视图
UIView *theView = [[CCDirector sharedDirector] openGLView];
非常感谢!
你不能把控制器到的意见。但是,你可以把它们控制到一个视图的意见。试试这个:
// instantiate and configure your MPMoviePlayerController here, c
// call it movieController
[theView addSubview:movieController.view];
声明:我在办公室,所以我无法知道这是否会奏效。