'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:

system 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?



Solution 1:[1]

Are you using the iPhone 4 simulator?

Hardware -> Device -> iPhone 4.

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jerry Jones