In recent years, Apple has introduced a Retina display on its flagship device. According to Apple, his pixel density is very high enough to make the human eye indistinguishable from individual pixels.
The UIScreen class provides an easy way to monitor whether the current device provides a built-in retina display. Check the scale property of the screen, which provides a conversion factor that translates from logical coordinate space to device coordinate space. For standard displays, the conversion factor is 1.0, so 1 points correspond to 1 pixels. For the retina display, it is 2.0.
-(BOOL) hasretinadisplay{ return2.0f);}
The UIScreen class also provides two useful display size properties. Bounds returns the bounding rectangle of the screen, measured in points. This provides the full size of the screen, regardless of any elements on the screen, such as the status bar, navigation bar, or tab bar.
The Applicationframe property excludes the status bar and provides the framework for the initial window size of the application.
Device-specific development for IOS: monitoring Retina support