I have added Default.png and [email protected] to a project. They are shown every time when the app starts. But when the app enters foreground from background, the launch image may be shown, and may not be shown. The showing or not showing may be related to the speed each time by which the app recovers. The problem is, how do I know exactly whether the launch image will be shown, or has been shown each time?
How to know whether launch image has been shown when applicationWillEnterForeground or applicationDidBecomeActive is called?
453 views Asked by xia xiongjun At
2
There are 2 answers
0
robbash
On
I'm having a similar problem and while googling I hit this question.
In my case it seems like the launch image is show if the app will recover in a different interface orientation than that one when it went to the background, even if changed to the upside down orientation.
You could compare the orientation before going to background with the orientation when returning. (use applicationDidBecomeActive:; applicationWillEnterForeground: is too early)
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in XCODE
- I am getting lots of errors when building react native app in Xcode
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Can't run built SFML project from Xcode template
- Postal Framework crash in iPhone but runs successfully in simulator
- React Native - RealmJS - Linker command failed with exit code 1
- how to install xcode on macos hight sierra without apple account
- Xcode: Can't Attach to process
- Issue with Xcode Target and settings for Apple Watch App
- There are no active runners online GitLab
- My project code not running in Xcode(15.3) but the same code running in Xcode 14.2 in swift how to fix in xcode 15.3?
- How to press and hold in Xcode simulator
- Memory management for image data storing and retrieving with SwiftData (or CoreData)
- Error: spawn flutter ENOENT in flutter build_runner
- Can a project using Crashlytics have a GoogleService-Info.plist file renamed to something else?
- What changed from xcode 13.2.1 to 14.2 that would affect an app's entitlements?
Related Questions in IMAGE
- Golang lambda upload image into s3 static website
- Put an image behind the title in a WP, WooCommerce "shop" page
- How to create an JSOUP element from byte array image (Load from Database)
- Cloudflare not respecting Cache-Control
- Sending multiple images and data in a single angular observable
- Create and combine several images into a single image for my react native App
- Should I compress images in java backend before sending to frontend?
- Javascript Place Image Where User Clicks
- Whitespace in document has a bottom border remnant or some other line at the bottom of the whitespace
- Sony Spresense Camera Board
- After completely installation and done all the work i am getting Permission denied error do any one have solution
- HTML page on NAS server image not showing on mobile phone
- mouse coordinates in image go below 0 and above width
- Why are the css images or js not loading in my laravel project?
- Python pillow library text align center
Related Questions in LAUNCH
- Cloud Shell Editor - How to connect and debug through a VM instance
- How to launch web browser from client side
- In iPad/iPhone (iOS 17.4) App crashed on Launching
- How to launch app from outside with BOOT_COMPLETED in android 10 and above versions
- Launch KEGGscape
- VSC. Debugger gets disconnected, in addition breakpoints doesn't synchronize. Why?
- An error occurred while launching Anypoint studio
- VS Code Launch Configuration for Node as SUDO
- How to terminate entire Java webapp when Liquibase exception occured at start-up
- How do I start another Android application from my RAD Studio Delphi Android application using a simple intent?
- VSCode: The terminal process failed to launch: A native exception occurred during launch (posix_spawnp failed.)
- Cytoscape does not launch correctly
- "Launch: program main.exe does not exist" appearing when trying to run a C file
- how to resolve android exception
- Anaconda Navigator not launching "Attribute error: 'bytes' object has no attribute 'get'
Related Questions in DEFAULT.PNG
- Code for changing multiple .img files into .png, then into numpy array
- How to merge several images in a directory into a single image given the no of images in a row using Python?
- Colour shapefile using multiple attributes
- Undersanding IDAT chunk to flip the image
- How can i make .png my default file extension in java
- How to set up launch images to support iOS 6 through iOS 9?
- C# Monotouch/Xamarin - Reduce Launch Screen Display Time
- How to display .ico image file in IE
- Image dimensions and file size limits for PNG files in Flex
- How to add these three files properly?"Default.png, [email protected], [email protected]" for universal app for iPhone/iPad?
- Will My iPhone App be Approved without a Default.png file ?
- app stuck with blackscreen after default.png
- Launch screen via custom url for iPhone 5
- Not a PNG filCommand copypng emitted errors but did not return a nonzero exit code to indicate failure
- Localized [email protected]
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I think the launch image is not shown when the app "recovers", as you put it, but only if the app is actually restarted. You could easily check this by putting an
NSLogstatement intoapplication: didFinishLaunchingWithOptions:and observing when you see the image.