0

When user clicks home button or received a call application every time goes to

- (void)applicationWillResignActive:(UIApplication *)application 

then

- (void)applicationDidEnterBackground:(UIApplication *)application. 

I have checked with putting logs in all delegate methods of AppDelegate.

Is there any restriction by Apple that we can't differentiate these two states ?

Vinayak Kini
  • 2,919
  • 21
  • 35
IOS Dev
  • 286
  • 2
  • 14
  • Why would you want to treat them differently? – Richard Feb 13 '13 at 06:18
  • http://stackoverflow.com/questions/1895815/detecting-the-type-of-iphone-interrupt – rptwsthi Feb 13 '13 at 06:50
  • Richard, as per my app requirement i need to display an alert when user has picked up a call and back to the app.I need to display a different alert when app was closed by home button. – IOS Dev Feb 13 '13 at 07:17

0 Answers0