I have got into an strange issue, where the - (void)applicationWillTerminate:(UIApplication *)application{} and - (void)applicationDidEnterBackground:(UIApplication *)application{} are not called when I try to stop the application from Xcode as opposed to home button.
applicationWillTerminate not called when application stopped from Xcode
4.1k Views Asked by Ksinak At
1
There are 1 best solutions below
Related Questions in IPAD
- Setting View orientation to portrait is ignored
- How to force close ipad/iphone keypad when input element is not focused using JS?
- UIDocumentInteractionController presentation style
- iOS coordinates for iPad and iPhone game using spritekit
- What is the best practice when making a storyboard for iPhone and iPad?
- Exchange plist data between 2 iPad using iCloud
- an app supporting arm64 and armv7 running on arm64 and ios 7 ipad air
- My SIOSocket get disconneted automatically when i locked my ipad
- using livestream video in iOS application
- Always shown vertical and horizontal scroll indicator on a uiwebview
- Is it possible to opt your iPad app out of multitasking on iOS 9
- Bind html button click with objective c
- iPhone App won't run on ipad at 2x resolution
- Missing icon and storyboard files, iOS 7 and 8, Xcode 6
- iOS infinitely deeply nested TableView/UIGestureRecognizer view tree AND iPAD requires 2 finger scrolling on a tableview
Related Questions in IOS4
- Perform some action depending upon the text in the inbox of iPhone
- iOS 4.3 image for Verizon iPhone 4
- How We Detect and Save the text Which is Written on iPhone/iPad Touch Screen?
- How to place image from url to Imageview in iPhone
- Recognizing the Text Drawn By using Bezier Paths
- Mapkit drawing a circle
- iPhone Tree Data Structure
- Memory Leaks vs High Memory Allocations?
- change size of viewcontroller - iphone sdk
- How do I use different images, depending on iOS device type?
- To restart the app from the home screen and not from the screen we left at
- iPhone Alternate View for Landscape Mode on Rotation
- Iphone SDK streaming the movies
- Objective C - Naming Outlets and Actions via a Database
- Can we display KML data on Google maps using Mapkit framework on iOS devices?
Related Questions in XCODE4
- What could be the cause of this if condition getting skipped even the condition inside is True?
- Inheritance and protected attribute
- Link error missing vtable
- Newton method for computing an inverse
- Xcode iOS Build - copy only specific sub-folders as Bundle Resources
- New iOS project, free hosted repository: Xcode 4 or Xcode 3.2?
- symbol(s) not found for architecture i386
- Deleting/Removing Group in Xcode
- In Xcode 4 GM, how do I turn on LLDB? All I see is GDB
- Upgrading to xcode 4 error No architectures to compile for
- XCode 4 User Script
- In XCode 4, how do you change the number of tabs in a UiTabBarViewController?
- if(self = [super init]) - LLVM warning! How are you dealing with it?
- "Run > Stop on Objective-C exception" in Xcode 4?
- Xcode 4 and GData compile problem
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?
This behavior is expected, because Xcode is not the home button on your iOS device.
If you click "Build and Run", for example, while testing another app, you will be prompted to kill the first app. If you do, then the first app will close as if it never opened. This seems to be a consequence of the application sandboxing.
On a similar note, If you hit the home button while testing an app on a multitasking capable device, then the app will continue to run in background mode and it will not trigger
applicationWillTerminate. Your device should however, triggerapplicationDidEnterBackground.