Jules
Jules

Reputation: 660

how to tell if app was launched from closed or background on iphone?

Hi all is there a specific delegate method which is called when an app is brought to the foreground from the background on ios? The reason being I want to perform different actions when my app is launched and when it is simply resumed from the background?

Many thanks

Jules

Upvotes: 1

Views: 177

Answers (1)

André Morujão
André Morujão

Reputation: 7133

When you're coming from the background, applicationWillEnterForeground: is called.

When it starts "from closed", applicationDidFinishLaunching: is called.

Upvotes: 2

Related Questions