Test if app did become active from a UILocalNotification
问题 Is there a way to know if the application did become active from a local notification? I know there is a way to test if the application was launched from a local notification alert; but if it just was sitting out there the background, and received a notification? I need to run different code, when the app has become active: From a local notification. Just has become active :) Is there a way to do it? 回答1: I'm afraid Sylter is incorrect. When an app enters the foreground from the background ,