Black screen showing instead of LaunchScreen.xib - ios

I'm trying to make my file LaunchScreen.xib show as the launch screen of my app. Whenever I run the app for the first time (where you run the app, and the simulator loads up for the first time), the splash screen is not shown.
There's one black screen before the simulator loads, but then there is a second black screen before my app loads. If I run the app again, after the simulator is loaded, the launch screen displays with no issue. However, if the black screen shows the first time, users will assume the app is not working, hence why this is a concern.
These are the settings I am using for my launch screen.
All help appreciated.

It is just Xcode's fault. While starting the app Xcode attaches its debugger and does some communication and a lot of other stuff. It is very possible that the launch screen is not displayed during that time or just for a split second.
If you just have the app on the device, completely quit it and then start it again, the launch screen should show up as expected.

There is no issue. The simulator load with blackscreen, it's not belong to your application. (os loaded at that time). After simulator loaded os, it launches your app with your laucnh screen

Related

IOS app only takes up full screen after second launch

I'm developing an app using Cordova. When I launch the app for the first time on a device (both simulator and live), there is a black border and the content is shrunk. If I exit it and relaunch it a second time, the app takes up the full screen as expected.
Also, when I run it in the simulator on an iPad, it is offset down and to the right slightly. Some content ends up cut off. How do I correct this?
I have tried it with and without viewport-fit=cover and with and without the splashscreen plugin.

Xcode9 made my Iphone7 screen go black

I launched an app with my own iphone7. the app had nothing on it. It is a single page application in IOS. when I ran the app it made my phone's screen go black. I can still get messages and it makes sounds, but the screen is black so I can not use it. How can I fix it?
I assume you're still running the app itself, and because your app has no content, it shows a black screen by default. If that's the case, you can forcibly terminate the app by double-tapping on the Home button, and then swiping down on the problematic app.
As an alternative, you could try soft resetting the device itself, by holding the Sleep button and the Home button at the same time for 10 seconds.
As a last resort, you can hard reset the device under Settings -> General -> Reset -> Erase All Content And Settings. Note that this will erase everything on the device, so should only be attempted if nothing else works.

Choosing Launch Screen File in Xcode makes my app launch slow on iOS

I have an app I'm about to launch to the Appstore, however, when I created an archive of my app in Xcode (developed in PhoneGap), it automatically compiled asset catalogs for icons and splash screens, and set the launch screen image to MainViewController in the settings. Because of that, my app takes a few seconds to launch after I tap the app icon on my phone and it doesn't show the splash screen (which worked perfectly when Launch Screen File was empty). Now, when I remove the Launch Screen File, my app launches quickly and normally, shows the splash screen, but now my app appears completely zoomed in.
How can I fix this? It's really annoying.
EDIT: Someone suggested an edit saying this has nothing to with Cordova. But it might. This app was built using Cordova CLI. When it was freshly built, no launch screen file was selected, but the app did't zoom in as it does now, when no launch screen file is selected. How can Cordova make an app appear normal without a selected launch screen file, but does it not work after archiving?

App starts and the device screen goes black sometimes

This is a very strange bug. I'm running my app on an iPhone device and only sometimes, when the app starts, you can see the app for a freckle of a second and then the screen goes black.
Any advice?
If you have call any thread or block the main thread to be execute, then for some second your screen will be blank. To avoid that add some splash screen shot, like FaceBook shows. Replace Default launch images. Default is blank, so it shows black screen. If you make required size screen shots then it will not shows black screen when app launch.
I do not know exactly why this happens but I develop an app and testing on several devices like 4, 4S,5,5S(iOS 7.1, 8.1) and get same black screen as you get after I change device. My solution is always "quit from simulator and open it again" when I do like this it works fine (Sometimes 3-4 times). I guess there is nothing to do by user. My thought, Only apple can solve this problem if we lucky :)

Is there any possibility of showing home screen as background while the app loads my transparent launch image?

I am trying to show the home screen or springboard in the background of launch image.
But what I actually get is in iOS 7
and in iOS 6.1
Is there any possibility of showing home screen or springboard in background while launching the app?
You can't do it. And any home screen screenshot you bundle with your app is never going to match a users actual home screen. As you've seen iOS covers the home screen when an app is launched even if you don't provide a launch image, and if you provide an incorrectly shaped one your app will be rejected at submission.
Just make a launch image as recommended by apple, with a minimal version of your interface on it. It's not a "splash screen" or an opportunity to shove your logo in the users face.
The best you can do is take a screen shot of your home screen and then use that image as the start up image, you can't do anything dynamic to that image because that image is what the OS shows whilst loading you app, i.e. before your app has a chance to start running.

Resources