Displaying splash screen for longer than default seconds
No, the default.png
is shown while your app starts up.
You can add a new viewcontroller which will display the default.png
in the application didFinishLoading
.
This way you display the default.png
a bit longer.
You should only show the default.png
if you are loading data, which could take some time.
As the appstore guidelines state, you should not delay starting of you are any longer than necessary.
iOS: how to delay the launch screen?
You can create a view controller that uses the LaunchScreen storyboard, present it (not animated) on applicationDidFinishLaunching
or applicationWillFinishLaunching
, and dismiss it whenever you want.
Keep in mind this is discouraged by Apple because it gives the impression that your app takes a lot longer to launch, which is bad user experience and might cause some of your users to delete your app.
How can I delay splash launch screen programmatically in Swift Xcode iOS
Put one line of code in AppDelegate class -
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Thread.sleep(forTimeInterval: 3.0)
// Override point for customization after application launch.
return true
}
Displaying splash screen for longer than default seconds
No, the default.png
is shown while your app starts up.
You can add a new viewcontroller which will display the default.png
in the application didFinishLoading
.
This way you display the default.png
a bit longer.
You should only show the default.png
if you are loading data, which could take some time.
As the appstore guidelines state, you should not delay starting of you are any longer than necessary.
How make the splash screen last longer in a xCode project?
You should no delay the splash screen, since it's not splash screen. it's place holder for the app while is it loading.
If you read the Apple HIG you will read that delaying it is not allowed.
If you think that following these guidelines will result in a plain,
boring launch image, you’re right. Remember, the launch image is not
meant to provide an opportunity for artistic expression; it is solely
intended to enhance the user’s perception of your app as quick to
launch and immediately ready for use.
Flutter splash screen Xcode white background for first 2 seconds
I have fixed the issue by restarting my device. Apparently this is an iPhone/iOS cache bug.
Related Topics
How to Build For Armv6 and Armv7 Architectures With iOS 5
How to Open PDF File Using Uiwebview on iOS
Launching App or App Store from Safari
Viewdidappear Is Not Called When Opening App from Background
How to Launch the Google Maps iPhone Application from Within My Own Native Application
How to Use Generic Protocol as a Variable Type
Draw Segments from a Circle or Donut
Best Way to Add License Section to iOS Settings Bundle
Uiview and Initwithframe and a Nib File. How to Get the Nib File Loaded
How to Recognize Swipe in All 4 Directions
How to Save Local Data in a Swift App
Create Uiimage With Solid Color in Swift