ios - How can I tell if a Springs and Struts app is scaling in the iPhone 6 simulator? -


i have couple applications built pre-auto-layout (but w/ springs , struts support iphone 5+) i'm trying out in iphone 6 , 6 plus simulator , quite good. however, can't tell if springs , struts doing job so-to-speak or if they're being scaled. there must obvious thing i'm missing says which? also, auto-layout apps automatically convert when recompiled latest sdk iphone 6 they're not scaling long 3x artwork provided (in case of 6 plus)?

you can see, if app runs in scaled mode outputting bounds , native bounds screen of main screen:

println("bounds = \(uiscreen.mainscreen().bounds)") println("nativebounds = \(uiscreen.mainscreen().nativebounds)") 

without designated launch images output of iphone 6 plus simulator is:

bounds = (0.0,0.0,320.0,480.0) nativebounds = (0.0,0.0,960.0,1440.0) 

the native bounds 3 times scaled bounds. reason behind @3x display.scale.

in case of iphone 6 plus nativescale helps:

println("main screen native scale = \(uiscreen.mainscreen().nativescale)") println("main screen scale = \(uiscreen.mainscreen().scale)") 

nativescale 3.0. scale 2.0 if simulator scaling.

to comprehensive understanding of new resolutions see great blog entry: http://www.paintcodeapp.com/news/iphone-6-screens-demystified


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -