开发者

Combining Cocos2D view into an existing tabbar app

I have an app with a main tabBar view and I would like to add开发者_运维技巧 a cocos2D game in one of those tabs. Is there any way to integrate it without reprograming all in cocos2d?

Thanks


CCDirector has a property named openGLView. This is the view where Cocos2D renders everything. You could create your own EAGLView (which is a subclass of UIView), add it as a subview to your tab view and make Cocos2D render your scene into this view.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜