Duck
Duck

Reputation: 35953

applicationWillResignActive x screen saver

Inside my applicationWillResignActive, I have to do certain functions that are just intended to run in the case the app is resigning because the iPhone is entering on screen saver mode.

Is there a way to know if this is the case inside applicationWillResignActive?

Any clues?

thanks

Upvotes: 0

Views: 136

Answers (1)

Jonathan Grynspan
Jonathan Grynspan

Reputation: 43472

I don't believe you can distinguish the reason for the state change. You should run those tasks every time you have such a state change, however, as the OS can (and will) force your app to terminate while in an inactive or background state.

Upvotes: 1

Related Questions