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?
450 Views Asked by xia xiongjun At
2
There are 2 best solutions below
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
- UIWebView Screen Fitting Issue
- ios responsive design not working (too wide in portrait orientation)
- Setting View orientation to portrait is ignored
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- What is the limit for number of subscribers to a stream(publisher's) in opentok/tokbox iOS SDK?
- How to generate request format for WCF web service method for Mac and iPhone
- Difference between gethostname() and [NSProcessInfo hostName]?
- How to force close ipad/iphone keypad when input element is not focused using JS?
- iOS app rejected because of in-app purchase
- iOS coordinates for iPad and iPhone game using spritekit
- What is the best practice when making a storyboard for iPhone and iPad?
- Labels properties changing in Xcode
- Terminating app due to uncaught exception
- Exchange plist data between 2 iPad using iCloud
Related Questions in XCODE
- Using Storyboard Reference
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Error when creating UIImage
- fade in an bounce animation subview
- How to delete static library ".a" file from xcode project?
- Error in main.storyboard
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Using paths bonded to a XCode project to be shared
- How to set the time of Local notification in app to random between two times? (swift)
- "Invalid Signature, code object not signed at all" error
- Alarming memory increase with custom segue
- Display both alertTitle and AlertBody on a custom WatchKit notification
- How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
- Cannot use CTRL+Drag for making a button action in Xcode?
- Labels properties changing in Xcode
Related Questions in IMAGE
- Add image to JCheckBoxMenuItem
- Display images on Django Template Site
- How to resize images with PHP PARSE SDK
- Animation in Java on top of JPanel
- Slow performance on ipad erasing image
- What are the pros and cons of the picture element?
- Carrierwave file upload with different file types
- How to use annotorious with angular
- Images not showing when uploaded to server
- ImageView doesn't show up
- Image Resizing adjusts ratio
- Displaying bitmap image on Android (OpenCV)
- Class 'Imagick' not found - PHP and Windows
- Image position - randomly select position
- Replace image 1 with image 2 after 5 sec
Related Questions in LAUNCH
- Launch iOS app without setting up URL Scheme
- how can i launch a app form other on Android
- Batch file does not follow through with launching program once given permission by the user account control
- Launching Cordova App from Contact List
- iOS app crash on launch using XCode debugger, runs fine without debugger
- AppV 5.0 SP3-Unable to launch an application from icon in a Virtual Environment
- Swift 1.2 Singleton causes App to not launch
- What information is available to an application about its launch? Can it detect that it was launched from Java?
- Android Studio Requires rebuild every run
- Can't launch to browser from notepad++ anymore
- Android: How to get the right application name?
- eclipse on macOS 10 doesn't launch
- C# using launch arguments after the tool restart
- New to Programming and Getting an error
- iPad - Different Images in Launch Storyboard for iPad in Landscape & Portrait Mode
Related Questions in DEFAULT.PNG
- iPhone OpenGL First Frame Black
- Show splash screen instead of snapshot
- How to know whether launch image has been shown when applicationWillEnterForeground or applicationDidBecomeActive is called?
- default.png does not work
- Launch image of my iphone application inverted on iPad
- Code for changing multiple .img files into .png, then into numpy array
- Why do I see double status bars when starting my app?
- iOS version specific Default.png?
- Why is iPhone 5 briefly Letterboxing and displaying Default.png in Cocos2d?
- Where is my background image coming from?
- IOS Default.png show every time when my app enter foreground from background
- iPhone returns to black screen after sleep interrupt during splash screen
- Xcode 4 - removing "Default.png"
- iPhone - Force localization of Default.png
- How to delay Default.png?
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)
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?
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.