Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App not using full height of iPhone 5

I have an App that was created a long time ago and updated it to use Storyboards. All the views have been rebuilt and hooked up. However, the App does not use the entire height of an iPhone 5, even though in Storyboards, it shows they adjust based on the size of the screen. In fact, none of the startup screens show up at launch. It's just a black screen.

I do have a full size startup image appropriately sized and named. And it shows up in the General tab of the settings. Am I missing a setting or something that needs to be changed? I have tried everything.

Additional note: I have a feeling it has something to do with the startup screen not showing up on launch. Even though the setting is there with all three startup screens. It's just a blank black screen that appears during startup.

like image 914
Michael Reiland Avatar asked Oct 30 '13 00:10

Michael Reiland


4 Answers

If you put your launch images in the asset catalog, this might be the problem:

In the main project settings (when you click on the top entry in the file browser) under "General", scroll down about halfway to "App Icons and Launch Images". There's an entry in there for "Launch Images Source". You'll probably see a button that says something like "Use Asset Catalog". When you click it, Xcode will ask you to "migrate" your launch images to the asset catalog. Go ahead and do this, although it's probably just going to create a new empty launch image set, which you can later delete. Then after that's done, you should see a dropdown where the button was, and in there you can select the actual launch images. Then if you want, you can go into the asset catalog and remove the launch image set that Xcode just created.

See the photo below, make sure Launce Screen File has an entry!

enter image description here

like image 177
James Nick Sears Avatar answered Sep 19 '22 22:09

James Nick Sears


Just add the splash image for iPhone 5, (640 x 1136)

like image 35
zaheer Avatar answered Sep 19 '22 22:09

zaheer


Do you have the launch (default) image with size 640 x 1136? If you do not have this image you should add image with name [email protected] and with size is 640 x 1136.

Without this image iOS thinks what your app does not support the new dimension.

AppleDocs

like image 2
Andrew Romanov Avatar answered Sep 23 '22 22:09

Andrew Romanov


Just came across your post while searching for something related - not sure if you've fixed it yet but I had an issue when updating my app to include retina-resolution images, and they weren't being picked up by the app.... until I spotted the Target Membership tick-box in the File Inspector for the image.

The new images that I had added to the solution were not ticked for my app in the File Inspector, so weren't getting compiled in - once ticked, they were included and displayed in the correct context.

like image 2
Jools Avatar answered Sep 21 '22 22:09

Jools