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.
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.
In new Xcode 6 projects, you don't have these Default-568h@2x.png images.
Do the next steps to fix it:
1) Open your Images.xcassets and look for LaunchImage. It is probably missing.
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.
Voila!
Try using Default-568h@2x.png image as splash.
Project Properties -> General -> App Icons and Launch Images -> Click (Use Asset Catalog)
Pop-up -> Click (Migrate)
Delete (Launch Screen File)
Finish!!!
In Xcode 7, make sure in addition to what's been said about adding a LaunchImage you also add this entry in the plist file:
I imagine this won't help much, but I have exactly the same problem and found this link. Maybe it helps you, I coulnt find the answer:
put Default-568h@2x to your app bundle with dimension 640x1136. You can assign launch images using xcode catalog assets alternatively.
Under project properties, ensure you are using the "asset catalog" for launch images. I found my project was using a custom location by default. By switching over to "Use Asset Catalog", the top/bottom black margin went away.
I was facing this problem in XCode8. I figured it out that Launch Screen File was not set.
Go to : project Properties -> General -> App Icons and Launch Images
Click on drop down and select Main.storyboard.
This issue is solved when you add the Splash screens for Defualt@2x.png and Defualt-568h@2x.png