iPad3 high resolution retina display issue
问题 I am developing an app for iPad3(Retina Display) using Xcode 4.2 [iOS SDK 5.0]. I am using following code snippet for detecting retina (high-resolution) display. if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { NSLog(@"scale = %f",[[UIScreen mainScreen] scale]); if ([[UIScreen mainScreen] scale] > 1.0) { NSLog(@"Retina Display iPad3"); } else { NSLog(@"Non Retina Display iPad 1/2"); } } When I install app on iPad3 device it is showing output: scale = 1.00000; Non Retina