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

  • Home
  • SEARCH
  • 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 9084305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:58:04+00:00 2026-06-16T20:58:04+00:00

I have a problem with the simulator, I try to make the app with

  • 0

I have a problem with the simulator, I try to make the app with space manager and in my delegate.m I have this source..
I try to set code for each device specifficaly and there where is written //HERE IS THE PROBLEM, I try to set code for ipad with retina display and when I start my simulator everything works perfectly on , but ipad with retina display doesn t load, it loads only if I set there [director enableRetinaDisplay:NO]; and then it runs without retina.
So does anyone know, how to set it to allow retina display to work it in another way? Thanks.

    if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone )
{
    CGSize result = [[UIScreen mainScreen] bounds].size;


    if(result.height == 480 && [director enableRetinaDisplay:YES] == YES)
    {
        NSLog(@"iphone 4");
         [[CCDirector sharedDirector] replaceScene:[GameLayer node]];
    }


    if(result.height == 480 && [director enableRetinaDisplay:YES] == NO)
    {
        NSLog(@"iphone 3");
        [[CCDirector sharedDirector] replaceScene:[GameLayer node]];
    }



    if(result.height == 568)
    {
        NSLog(@"iphone 5");
        [[CCDirector sharedDirector] replaceScene:[Menu node]];
    }

}


if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
    CGSize result = [[UIScreen mainScreen] bounds].size;


    if(result.height == 1024 && [director enableRetinaDisplay:YES] == NO)
    {
        NSLog(@"iPad");
        [[CCDirector sharedDirector] replaceScene:[GameLayer node]];
    }

    if([director enableRetinaDisplay:YES] == YES)
    {
        NSLog(@"iPad retina");

        //HERE IS THE PROBLEM
        //HERE IS THE PROBLEM
        //[director enableRetinaDisplay:NO];

        [[CCDirector sharedDirector] replaceScene:[GameLayer node]];
    }
}
  • 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-06-16T20:58:05+00:00Added an answer on June 16, 2026 at 8:58 pm

    This is a known bug in earlier Cocos2D builds, but can fairly easily be remedied by a small change to the CCDirectorIOS class. You need to replace line 212/213 with the following lines:

    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad &&
    [[UIScreen mainScreen] scale] > 1.0 )
    {gluPerspective(60, (GLfloat)size.width/size.height, zeye-size.height/2, zeye+size.height/2 );
    } else {
    gluPerspective(60, (GLfloat)size.width/size.height, 0.5f, 1500);
    }
    

    NB: This is NOT my fix, I just came across it googling after experiencing the same problem. The full explanation can be found here: http://swainya.blogspot.no/2012/03/black-screen-on-simulator-for-ipad.html credit goes to Spencer Ho…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to add admob, but I have some problem with it. This is
I have an interesting problem. My app runs fine on the iphone 4.2 simulator,
I have a strange problem when I try to deploy my current app to
I have problem with my query on C, I’m using the oci8 driver. This
Can any one help me. I have this ‘unmanaged’ .NET code, which works on
I have an app with a top frame and two framesets inside this top
I have a problem with switching views. I'm using a simulator with xcode 4.2
I think I have done everything to set up my app launch icon correctly
I have the same problem others have had, but I can't get my code
I am a beginner at this :) I have an app which changes an

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.