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 6059013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:39:49+00:00 2026-05-23T08:39:49+00:00

am having uiviewcontroller for some effects using in camera. am using cocos2d lot for

  • 0

am having uiviewcontroller for some effects using in camera.

am using cocos2d lot for this project. i want just how to integrate this UIviewcontroller in cocos2d scene.

using uiviewwrapper for UIview integration

same as for UIview controller any wrapper is there ?

thanks in advance.

  • 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-23T08:39:49+00:00Added an answer on May 23, 2026 at 8:39 am

    in MyViewController.h

    add MyViewController *mviewController;

    in MyViewcontroller.m

    #import "MyViewcontroller.h"
    
    
    //before push mviewController 
    
        if( ! [CCDirector setDirectorType:kCCDirectorTypeDisplayLink] )
            [CCDirector setDirectorType:kCCDirectorTypeDefault];
    
    
        CCDirector *director = [CCDirector sharedDirector];
    
        mviewController = [[MyViewcontroller alloc] initWithNibName:nil bundle:nil];
        mviewController.wantsFullScreenLayout = YES;
    
    
    
        EAGLView *glView = [EAGLView viewWithFrame:[[UIScreen mainScreen] bounds]
                                       pixelFormat:kEAGLColorFormatRGB565   // kEAGLColorFormatRGBA8
                                       depthFormat:0                        // GL_DEPTH_COMPONENT16_OES
                            ];
    
        // attach the openglView to the director
        [director setOpenGLView:glView];
    
    //  // Enables High Res mode (Retina Display) on iPhone 4 and maintains low res on all other devices
    //  if( ! [director enableRetinaDisplay:YES] )
    //      CCLOG(@"Retina Display Not supported");
    
    #if GAME_AUTOROTATION == kGameAutorotationUIViewController
        [director setDeviceOrientation:kCCDeviceOrientationPortrait];
    #else
        [director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
    #endif
    
        [director setAnimationInterval:1.0/60];
        [director setDisplayFPS:YES];
    
    
        // make the OpenGLView a child of the view controller
        [mviewController setView:glView];
    
        [[CCDirector sharedDirector]replaceScene:[NewLayer scene]];
    
    
    //here push that viewController
    

    if u dont want to create new viewcontroller then u can useable simply

    [[CCDirector sharedDirector]replaceScene:[NewLayer scene]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble using some UIButtons to call actions in my Tab Bar
I'm working on integrating Ben Gottlieb's Twitter-OAuth-iPhone code into my cocos2d 0.99.5 project using
Having a heckuva time with this one, though I feel I'm missing something obvious.
Having programmed through emacs and vi for years and years at this point, I
Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the
Having difficulty articulating this correlated subquery. I have two tables fictitious tables, foo and
Having worked through some tutorials on some basics via the iPhone, I'm struggling to
So i have this very basic ipad view controller and i was doing some
I'm having a hard time undestand a couple of the methods in UIViewController, but
I am having a uiviewcontroller instance and when I am releasing it the dealloc

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.