Trinh Tran
Trinh Tran

Reputation: 306

How can i catch an event when delete my app from background

How can I catch an event when delete app from background?

Upvotes: 0

Views: 620

Answers (1)

Stephen Darlington
Stephen Darlington

Reputation: 52565

It's not clear whether you mean actually remove the app from the device or just kill the running process. But either way the answer is the same:

You can't.

If there's any state that you want to record, you need to do it as the app goes into the background and not when the app is killed.

The documentation says that applicationWillTerminate: may be called. I have never seen that happen.

Upvotes: 1

Related Questions