Reputation: 589
Is there any way to detect if the application fully closes? Not only minimize but fully close application? I want to run a code that delete a NSUserDefault key when the application closes. Is this possible?
Upvotes: 3
Views: 1395
Reputation: 6790
In your AppDelegate there's a method:
applicationWillTerminate
You can probably take care of what you need to there.
Upvotes: 5