1

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 ..

4

1 回答 1

3

将 Default-568h@2x.png (640x1136) 添加到您的 Xcode 目标。

已经添加然后在这里查看我的答案: [[CCDirector sharedDirector]winSize] 是错误的

于 2013-07-22T14:51:10.107 回答