开发者

UIScreen scale factor is 1.0 in iPhone Simulator 4.0.2?

Am I missing something about the @2x graphics on the iPhone 4?

I'm running the 4.0.2 SDK in the iPhone Simulator, but UIScreen has a scale of 1.0, isn't it supposed to be 2.0 and load high res images automatically?

here's what's I'm testing:

 NSLog(@"system version: %@", [[UIDevice currentDevice] systemVersion]);
 NSLog(@"scale factor: %.1f ", [[UIScreen mainScreen] scale]);

and it prints:

sy开发者_JS百科stem version: 4.0.2

scale factor: 1.0

Is it a problem in the Simulator? Or I miss some magical key that I need to enable to make the UIScreen allow 2x graphics?


Are you using the iPhone 4 simulator?

Hardware -> Device -> iPhone 4.

The scale depends on the device, not the OS version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜