我正如你在标题中看到的那样我得到了这个错误。我认为有趣的是,使用ipad使用NSLog它显示为ipad,但在某些地方并没有使用ipad的大小,但不是全部,例如:
#define IS_IPAD() (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
--------------------
ball = [SKSpriteNode spriteNodeWithImageNamed:@"ball"];
if(IS_IPAD()){
ball.xScale = 0.4; // this works fine and i can change scale, if i want
ball.yScale = 0.4;
}else{
ball.xScale = 0.2;
ball.yScale = 0.2;
}
--------------
sprite = [SKSpriteNode spriteNodeWithImageNamed:@"board"];
if(IS_IPAD()){
NSLog(@"is ipad") // says it is
sprite.xScale = 0.5; //doesnt work
sprite.yScale = 0.7; //
}else{
sprite.xScale = 0.3; // takes this insted
sprite.yScale = 0.5;
}