开发者

Combining Cocos2D view into an existing tabbar app

开发者 https://www.devze.com 2023-02-18 20:10 出处:网络
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?

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

精彩评论

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