How can I detect if an iPhone has a retina display or not? Is there a reliable way? Either pure PHP or preferably Zend Framework way of doing this.
Learn how to get the most out of the Super Retina display on your iPhone X, iPhone XS, or iPhone XS Max, and the Super Retina XDR display on your iPhone 11 Pro, iPhone 11 Pro Max, iPhone 12, iPhone 12 mini, iPhone 12 Pro, iPhone 12 Pro Max, iPhone 13, iPhone 13 mini, iPhone 13 Pro, or iPhone 13 Pro Max.
Which Devices Have Super Retina (XDR) Displays? iPhones with Super Retina displays include the iPhone X, iPhone XS, and iPhone XS Max. Newer iPhone models, including the entire iPhone 12 and iPhone 13 series, use Super Retina XDR displays. In the iPhone 11 series, only the Pro models have Super Retina XDR displays.
Identifying iPad models So, knowing if you have a retina display seems to be as easy as looking at your iPad's connector. If 30-pin, you do not have retina display. If Lightening connector, you do have retina.
Retina is a trademarked term that refers to any IPS LCD or OLED display with a pixel density high enough that Apple has determined that your eyes won't be able to make out those pixels at a certain viewing distance.
i figure it out by this
var retina = window.devicePixelRatio > 1;
if (retina)
{
// the user has a retina display
}
else
{
// the user has a non-retina display
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With