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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CCDirectorhas a property named openGLView. This is the view where Cocos2D renders everything. You could create your ownEAGLView(which is a subclass ofUIView), add it as a subview to your tab view and make Cocos2D render your scene into this view.