Blane Townsend
Blane Townsend

Reputation: 3048

How to tell if your app just opened

With the new iphones there are multitasking. This means that you don't have to re-start the app. I want to know what code gets called when you tap on the app to bring it up, but not when you start it for the first time.

Upvotes: 3

Views: 186

Answers (1)

Jonathan Grynspan
Jonathan Grynspan

Reputation: 43472

Implement -applicationWillEnterForeground: in your application delegate, or observe the UIApplicationWillEnterForegroundNotification notification in another object.

These will be immediately followed by -applicationDidBecomeActive: and UIApplicationDidBecomeActiveNotification, respectively.

Upvotes: 9

Related Questions