Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 storyboard screen size wrong in iPhone5s(iOS 7) but not (iOS 8)

Tags:

I created a new project with xcode 6.0.1 using swift and set deployment target to iOS 7.0.

The screen size is wrong for iPhone 5s in iOS7 - it shouldn't have any black spaces.

blacks spaces in iPhone 5S

like image 431
saranpol Avatar asked Sep 20 '14 04:09

saranpol


3 Answers

In new Xcode 6 projects, you don't have these [email protected] images.

Do the next steps to fix it:

1) Open your Images.xcassets and look for LaunchImage. It is probably missing.

Images.xcassets

2) In this case, click on + (located at the bottom) and click on New Launch Image.

3) Select your project target and open Build Settings tab. Look for "Asset Catalog Compiler - Options" section and then "Asset Catalog Launch Image Set Name", if it is empty type LaunchImage.

Asset Catalog Compiler

Voila!

like image 117
jomafer Avatar answered Oct 12 '22 01:10

jomafer


Try using [email protected] image as splash.

Default-568h@2x.png

like image 30
Pankaj Yadav Avatar answered Oct 12 '22 00:10

Pankaj Yadav


  1. Project Properties -> General -> App Icons and Launch Images -> Click (Use Asset Catalog)

  2. Pop-up -> Click (Migrate)

  3. Delete (Launch Screen File)

Finish!!!

like image 30
erenerdogan Avatar answered Oct 12 '22 01:10

erenerdogan