Curnelious
Curnelious

Reputation: 1

CCDirector wrong window size on iPhone5

This is the first time i have this problem .

    -(void)onEnter
{

    [super onEnter];

    winSize = [[CCDirector sharedDirector] winSize];
    NSLog(@"wins:%f",winSize.height);

is returning 480 on iPhone5 simulator . Whats wrong here ?? its in onEnter ..

Upvotes: 1

Views: 239

Answers (1)

Guru
Guru

Reputation: 22042

Add [email protected] (640x1136) to your Xcode target.

Already added then checkout my answer here: [[CCDirector sharedDirector]winSize] is wrong

Upvotes: 3

Related Questions