Why is iPhone 5 briefly Letterboxing and displaying Default.png in Cocos2d?

Posted by The Learner on Stack Overflow See other posts from Stack Overflow or by The Learner
Published on 2012-10-12T02:02:31Z Indexed on 2012/10/12 3:37 UTC
Read the original article Hit count: 146

Filed under:
|

I have [email protected] which loads fine.

However, (on the actual device) after it shows the iPhone 5 then displays Default.png, in letter box mode. It then loads the 1136 × 640 px Title Screen - which is fine and what it's supposed to do.

I'm using the default Cocos2d HelloWorld template. I haven't changed anything in the plist or otherwise.

Any ideas?

Why does it load the Default.png and how do you fix this?

Thanks.

In the IntroLayer we have

-(void) onEnter

    if( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ) {
    background = [CCSprite spriteWithFile:@"Default.png"];
    background.rotation = 90;
}

Which is why Default.png is showing up.

How do you keep showing [email protected] if you are using the iPhone 5?

© Stack Overflow or respective owner

Related posts about cocos2d

Related posts about default.png