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.
精彩评论