Wyatt McGuire
Wyatt McGuire

Reputation: 477

iOS App won't use 4 inch size even with default-568h@2x image

Everything I read (including on Stack) keeps saying that in order to have an app use the entire 4" iPhone screen you simply have to add a [email protected] image with a resolution of 1136 x 640.

I've added this image and when I run on a 4" iPhone simulator everything (including the launch image) renders windowed with the black bars at the top and bottom. I've tried deleting and re-adding the image, made sure it shows up as the 4" launch image in the Target summary tab, and adjusted all of the simulated metrics sizes in my storyboard to be Retina 4 full screen. Even with all of this, I'm still getting the old 3.5" window.

Is there something I'm missing or doing wrong?

Upvotes: 1

Views: 420

Answers (2)

Olie
Olie

Reputation: 24675

You spelled [email protected] wrong. Remember that iOS is a case sensitive file system, so the capital "D" matters. (I had a very similar problem -- which is what led me to this question -- because I was missing the "h" )

Upvotes: 2

dizzytri99er
dizzytri99er

Reputation: 930

I'm not certain on what the issue is but a couple more checks you could do would be to make sure you have built the latest version of your project before simulation. The simulator may be launching a previous build that did not have the 4@ images

Maybe try temporarily removing your smaller resolution images to see if that makes a difference.

Also make sure when the simulator is open that you have the correct hardware configuration in the hardware tab

Upvotes: 0

Related Questions