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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论