Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App launches in full screen in simulator, but not on device

This is an Xcode 6 Swift project. When choosing iPhone 5 or 5s in the simulator, the app launches at full screen height. However, when running the app on an actual device (an iPhone 5s), the screen is only iPhone 4 in height (i.e. black bars appear at the top and bottom of the screen).

The strange thing is that I've re-created this project from another test project - and in the original project I didn't have this problem.

I've performed a text-compare on the storyboard xml files for each, and both are mostly identical. I've also looked at the Build Settings for each, and can't see any obvious differences. Finally, the json files specified in the "Images.xcassets" directory for each are the same.

like image 409
FredL Avatar asked Aug 15 '14 16:08

FredL


1 Answers

Managed to fix the problem. In the General settings for the target, under "App Icons and Launch Images" I clicked the "Use Asset Catalog" button and followed the options.

App Icons and Launch Images screenshot

like image 69
FredL Avatar answered Oct 14 '22 09:10

FredL