Autofit on iphone5 still have 960 width

Monkey Forums/Monkey Programming/Autofit on iphone5 still have 960 width

Raul(Posted 2014) [#1]
hello all,

well that's strange. I am designing my for to iphone5 portrait mode (1136 x 640)

I am using AutoFit and I set the SetVirtualDisplay to 1136 x 640

While testing on an actual device (iphone 5s) and also on emulator I observed I receive some black bars. Not the entire iphone screen was used. I inserted a quick: Print DeviceWidth in mainloop and I receive that the width is 960

Where is the mistake?


Raul(Posted 2014) [#2]
searched better the topics and I discovered that I must 1st set the launching image to a 1136 x 640 png file.. stupid ios.. :D


Shockblast(Posted 2014) [#3]
I had the same problem as you today, thx for finding this out! GetDeviceHeight() will only return 1136 when you have a 1136 x 640 png launch image set in the xcode project.


Pellegrinetti(Posted 2014) [#4]
I' have the same problem


MikeHart(Posted 2014) [#5]
And, did you set the default image like the 2 previous posters did and had mentioned before?