PDA

View Full Version : When Open From Background.




Alexj17
Aug 19, 2010, 05:17 AM
Hey All

I see the delegate has the 'didFinishLaunchingWithOptions' for when the first app first loads. I know each page has the DidLoad and WillAppear.

Is there a method/function/class or whatever these things are called for when the app is opened while it is in the background. Either the user clicks it from the bottom row of icons (after double click) or simply just clicks the app icon when it is already open.

I dont want to use the WillAppear because then it will happen on every page view and not just this reload from background.

Thanks
Alex



jnic
Aug 19, 2010, 05:20 AM
Is there a method/function/class or whatever these things are called for when the app is opened while it is in the background.

These are called delegate methods. Check out the UIApplicationDelegate (http://developer.apple.com/iphone/library/documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html) Protocol; specifically, applicationWillEnterForeground: sounds like what you're after.

Alexj17
Aug 19, 2010, 06:48 AM
Perfect thank you !!!