Skip to main content
p0L
Known Participant
May 25, 2014
Question

Air iOS 7.1 // requestedDisplayResolution 'excludeDevices' doesn't work on the simulator?

  • May 25, 2014
  • 1 reply
  • 638 views

So basically i want my app to use the 2x pixel scaling ( requestedDisplayResolution : standard ) on any iOS devices that have a screen bigger then 1024x768 ( retina iPads ect. )

else, for iPods / iPhones / iPads below or at 1024x768 : the requestedDisplayResolution : high ( if i understand well : 1x pixel then )

problem is the iOS 7.1 simulator only seems to take in account the value of requestedDisplayResolution and ignore the parameter excludeDevices :

if i go :

<requestedDisplayResolution excludeDevices="iPad">high</requestedDisplayResolution>

---> i get :

OK  ( 1x pixel, no scaling ) : iPhone Retina 3.5 inches,  iPhone Retina 4 inches, iPad

Not OK ( still 1x pixel no scaling --> i wanted 2x scaling this time ) : iPad Retina!

if i go the opposite way :

<requestedDisplayResolution excludeDevices="iPod iPhone">standard</requestedDisplayResolution>

---> i get :

Not OK ( 2x scaling --> i wanted 1x... ) : iPhone Retina 3.5 inches,  iPhone Retina 4 inches

OK ( 1x ) : iPad ( once again, the only device on the simulator that doesn't actually seem to be affected neither by 'standard' or 'high' )

OK : iPad Retina ( 2x scaling : that's what i wanted for this device... yay, but not really cause the iPods / iPhones are screwed then )

hope i made myself clear, please help i'm losing my mind here : am i doing something wrong? did i overlook something? or is the simulator behavior wrong??

Thanks

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
May 25, 2014

You should use “iPad3” as the excluded device, and “high” as the setting. That will then do Retina on iPhone 4, 4s, and the various iPhone 5 models, but it will do 1024x768, at 2x on iPads that have Retina.

p0L
p0LAuthor
Known Participant
May 25, 2014

doesn't work either : iPad Retina remains in 'high' ( 1x pixel ) ~ i still want it 'standard' 2x scaling,

all the others ( iPhone Retina 3.5 inches,  iPhone Retina 4 inches, iPad ) are fine at 1x pixel.

basicaly this once again turns all devices on the simulator to high and ignores my excludeDevices parameter value.....

my line in the app descriptor:

<requestedDisplayResolution excludeDevices="iPad3">high</requestedDisplayResolution>

p0L
p0LAuthor
Known Participant
May 25, 2014

could there be an interaction with something else on that matter?