In Xcode 5, I use the asset catalog to manage the app icons and launch images for my app. The app icons work fine on all devices, but the launch images just on a few.
I have added launch images for every possible device, and iOS (6.1 and 7.0), that I want to target. I have made sure that all images have the correct sizes, which is confirmed in the attributes inspector (see picture below) where the size of the images match the expected sizes. I have also named all images after the naming conventions, which should not even be necessary with asset catalog (see last picture). There does not seem to be any naming conventions for iOS7 launch images running on iPhone, so I have simply named them "iphone4_iOS7" and "iphone5_iOS7".
The launch images shown in the simulator when I run on iOS7 all turn up completely black, no matter which device. I also get this behaviour on my iphone 5, which confirms the simulator is not the problem. The same black image is shown when I run iOS6 in the ipad and ipad retina simulators. The launch images for the iphone simulators with iOS6 works as expected.
I have numerous times, both in simulator and on device, deleted the app and cleaned but it has not resulted in any improvement.
What am I doing wrong? How can I get rid of the black launch images and get the images I set in the asset catalog to show instead?
The launch image is visible on mobile devices when launching the app for the first time or when restarting the app. The launch image fills the whole screen for a few seconds until the app data loads and the app content is available. This bridges any gap in loading time and provides the user a seamless experience.
In the Project navigator, select an asset catalog: a file with a . xcassets file extension. Drag an image from the Finder to the outline view. A new image set appears in the outline view, and the image asset appears in a well in the detail area.
An asset catalog is a type of file used to organize and manage different assets and image resolutions used by your app's user interface.
Make sure that Launch Screen File is empty! Making it empty solved the issue in my case
launching images, only will be visible on your device if you reinstall on your device
UPDATE:
There is a weird issue what I found. If you are using LaunchScreen.xib and you have images in it, you have to do the tasks above and TURN OFF your device... (seriously...). Every image will be updated in the next build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With