Skip to main content
p0L
Known Participant
May 25, 2014 11:02 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

Colin Holgate
Inspiring
May 25, 2014 11:07 PM UTC

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.

Translate
p0L
p0LAuthor
Known Participant
May 25, 2014 11:18 PM UTC

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>

Translate
p0L
p0LAuthor
Known Participant
May 25, 2014 11:22 PM UTC

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

Translate