Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6554201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:40:19+00:00 2026-05-25T12:40:19+00:00

I have pretty much made my app to about 90% using UIKit code since

  • 0

I have pretty much made my app to about 90% using UIKit code since it is my first app and wanted to keep it simple. Now I learned that I needed to use Cocos 2D in one of my views, my play view. So I have coded half of the functionality in the view using UIKit. Is there any way to use Cocos 2D in that view for the actual game part? Are there any easy tutorials or links someone can point me to, to do this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:40:19+00:00Added an answer on May 25, 2026 at 12:40 pm

    I think the link Brad noted is a great reference. More immediately something like….

    EAGLView *glview = [EAGLView viewWithFrame:CGRectMake(0, 0, 250,350)];
    [yourView addSubview:glview];
    
    CCDirector *director = [CCDirector sharedDirector];
    [director setOpenGLView:glview];
    

    Should work for you. Create the OpenGL view for the CCDirector to use. Attach that view as a subview of the view where you want it placed. Attach the CCDirector to your OpenGL view.

    Additionally the Cocos2D website and wiki have some great resources that may help…

    • Cococs2D Wiki – http://www.cocos2d-iphone.org/wiki/doku.php/
    • Cocos2D Forums – http://www.cocos2d-iphone.org/forum/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have pretty much finished my first working Symbian application, but in my hastened
This is pretty much the same problem i have, except with very different code:
Pretty much what the title says really. We have some code that is .NET
I am pretty much new to using SQL Server 2000. I have been using
We've pretty much moved over to using boost::shared_ptr in all of our code, however
I have built a PHP calendar system and have pretty much everything done but
We are working on a datawarehouse for a bank and have pretty much followed
I have a pretty much default installation on mysql on Windows 2003. I am
Dependency Injection frameworks in Ruby have been pretty much declared unnecessary. Jamis Buck wrote
I have heard mention that some desktop applications are pretty much just wrappers for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.