iphone - Screen scale/size is right in iOS 8 but wrong in iOS 9 on same device -


i've updated xcode 7 start developing against ios 9. upon first launching application, noticed screen size/scale off compared how looks on ios 8, both on iphone 6 device.

here how looks correct on ios 8:

image1

here how looks incorrect on ios 9:

image2

if notice, both of images same exact size.

note how admob banner has white space on left/right, i'm assuming admob knows center it. big white space right of table view , button down on bottom.

also, when in ios 8, , putting break point in main delegate method, main window has frame of (0 0; 320 568). layer on window same.

on flip side, when in ios 9, , putting break point in main delegate method, main window has frame of (0 0; 375 667). layer on window same.

that explains why difference in of app in ios 8 vs. ios 9, not know why ios 8 looks way want , ios 9 doesn't. there setting i'm missing?

edit:

i've since figured out bounds of mainscreen different between when runs in ios 8 vs. ios 9. screenbounds of mainscreen set same frame above, , have no clue why different between 2 ios versions.

edit 2:

so created brand new project , tested out. not same behavior explained above in first edit. when view mainscreen bounds, in both ios 8 , ios 9, (0,0;375,667);

i cannot figure out causing happen can fix it.

edit 3:

after toying around quite bit last night, turns out launch images causing happen. if remove launch images of default-568@2x.png list, displays properly. odd can effect scale. still didn't figure out how solve yet though because have have launch images or apple reject app, i'm keeping open until have more time tonight toy around it.

are testing on devices or simulators? if on device, ios 8 device might have display zoom enabled: settings → display & brightness → display zoom. make iphone 6 (375 ✕ 667) think it’s iphone 5 (320 ✕ 568).


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -