i have a problem. when i launch my app there is a black screen viewed for a seconds then the launch screen appeared.
my splash screen isn’t the default one. i used view controller because my splash had an animation.
i searched for a solution, and i get this on:
Black screen before my splash screen loads iphone
but it didn’t worked
any help please?
thanks
Have you selected your Launch Screen in your target's App Icons and Launch Images ?
Edit: If you don't use any launch (splash) screen or image then, a black screen is the default behaviour before loading your view controller.
I faced same issue but my solution is different,
I've made an extension of UINavigationController to make UINavigationBar clear.
So,the problem is , I was doing some R&D on that code and unknowingly put a method
open override func loadView() {
super.loadView()
}
and from that time, I started facing this issue.
My advice, please double check that you haven't don't something like that.
I had a custom splash screen to launch. But the Launch Screen file was pointed to Default LaunchScreen.storyboard. Replaced that with my original custom splash, the issue fixed
Related
I have a "animated" Splash screen with Lottie which looks identically to the iOS "native" Splash screen, I created in Xcode. Now I want to first launch the "native" Splash screen and then my "animated" one. The transition has to be seamless, so the user doesn't recognize, that it first was an image.
BUT
the "native" screen fades out and then my "fake screen" opens. So I want to get rid of the "fade out" between the screens. Any ideas or other approaches? Thank you so much!
Hey I hope someone can help me.
So far I've only done the User interface of a multiview app, no coding done.
And I wanted to check it in the simulator.
Now, the launch Screen loads correctly, but then the screen goes black instead of showing the first view controller. And nothing in the debugger.
-Edit: After editing the info.plist, I do now get an error in the debugger
regarding to a missing SceneDelegate.
info.plist
You have to set Main Storyboard from Project general tab.
General -> Main Interface
I'm trying to get my app's splash screen to be displayed correctly instead of a black screen for a few seconds before the splash screen. I have made 3 implementations of the splash screen; issues with each are listed below:
XIB: This only displays the background color of the splash screen for a few seconds and then the rest of the splash is loaded.
XIB + Asset Catalog: For iPhone 5 running iOS 8: if the phone is currently displaying the blue navigation bar and the app is opened from a url while in the background, a black screen will be displayed before the splash.
Storyboard: On all models: this displays a black splash screen before the actual one loads.
Is this an iOS bug or am I implementing something wrong?
You might want to check the logic that is executed when the application is launched - application:didFinishLaunchingWithOptions:. If it takes significant time to execute the code in it, then this might be the problem. It is always recommended to return fast and execute any additional logic on a later moment.
It's so quite simple! I had such bug and I solved it.
You should enable "Enable Initial View Controller" to see splash screen
Good evening.
I'm developing for iOS for some years now and I'm experiencing a strange issue ever since iOS8 was released. I was assure it will be fixed but it's 8.1.2 now and it's still happening.
On iOS7 everything is working fine but on a phone running iOS8 something strange happens.
The Problem:
The application turns black randomly. the application is still running as the debugger not firing with an exception. It happens on iPhone 4,5,6 running iOS8 and not on iOS7.
I can not predict the black screen.
I tried opening a new project but the same: random black screen.
Anyone else experiencing this?
Any idea on how to fix this?
It's really annoying.
Thank you so much in advance!
P.S: I'm developing in Swift if it makes any difference.
I had the same problem :
Go to the iOS simulator menu and choose Reset Content and Settings...
Close xCode
Delete the contents of the DerivedData folder (~/Library/Developer/Xcode/DerivedData)
Delete (~/Library/Caches/com.apple.dt.Xcode)
Now launch Xcode…
You can give your main UIWindow background color and check if your view is being removed for some reason.
[[[UIApplication sharedApplication] delegate] window].backgroundColor = [UIColor redColor]
I am not sure but you can try.
I had the same black screen problem using storyboard UINavigationController with two sequed UIViewcontrollers. My rootwiew controller would flash on screen followed by the black screen. After much researching of the problem I found a hint which stated that your code must be in the correct order when the app launches.
My original code under FinishedLaunching method:-
UIStoryboard storyBoard = UIStoryboard.FromName("MainStoryboard", NSBundle.MainBundle);
var navController = storyboard.InstantiateViewController(navigationController);
window.RootViewController = navController;
window.MakeKeyAndVisible();
This provided my root view controller followed by the black screen.
Simply moving window.MakeKeyAndVisible(); from FinishedLaunching method into the OnActivated method gives me a working app with page navigation back and forth with no errors and no black screen.
So, i have a webview in which i load an ad everytime the app starts, this is the first viewController in the main navigation controller and its the one that launches the home viewController after the ad, the problem is, after the splash screen and before the ad is finish loading, the webview is hidden at first and when loaded then is visible, beneath the webview is an uiimage with constraints to fill the entire view. the image is the same as the splash screen (portrait or landscape), but when the transition from the splash intro to the first viewcontroller begin, the imageview looks offset in comparison to the ios splash image, so im guessing it has to do with the status bar at the top? i have tried many combination of constrains and sizes and i cant seem to find a way to achieve a non-jumpy transition from the splash to my first uiimageview filling the whole view.
this is what im trying to achieve.
https://dl.dropboxusercontent.com/u/33305929/intro.png
the whole thing is already done the only problem is the jumpy not perfect transition from the intro splash screen to my uiimageview in the first viewcontroller, any ideas? has anybody faced the same issue, any suggestion is much appreciated. thanks for your time.
note: the uiimageview has constraints for top, bottom, left and right of the layout. i also tried with no constraints with no luck.
So the problem was the resolution of the image that ios was using in the splash screen.
from ipad2 and ipad mini, it should be the normal (768,1024) version of the splash, for ipad Air and retina displays the image for splash is the #2X version.