UIScreen
has a new, nativeScale
property in iOS 8 but the documentation does not say a word about it.
@property(nonatomic, readonly) CGFloat nativeScale
There is also a scale
property but the docs say it is 2 for retina displays.
@property(nonatomic, readonly) CGFloat scale
I am wondering if there is a way to distinguish the displays. The reason why I need to know whether the device has Retina HD display is because I want to request images with different sizes based on the displays.
Thanks for any help!
Check the below code:
Reference:
iPhone Resoution
Below works very well to detect type of display on iPhone6Plus.