0

How can I determine when myApp is opened even when it is already opened in the background?

Your help is greatly appreciated.

atomikpanda
  • 1,845
  • 5
  • 33
  • 47

1 Answers1

0

- (void) applicationWillEnterForeground seems to be the method that you're looking for.

rien333
  • 1,154
  • 13
  • 15
  • I believe the class in which the method is called has to be the `UIApplicationDelegate`, so you have to declare that first in your @interface. – rien333 Oct 09 '12 at 13:21
  • I'm new to objective-c and not sure exactly how to do that. @rien333 – atomikpanda Oct 09 '12 at 13:27
  • In your header file, change the interface declaration to this: `@interface YourClassName: NSObject ` – rien333 Oct 09 '12 at 13:36