Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检测用户何时单击本地通知并打开我的应用程序?
在您的应用委托中使用此方法:
-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { }
您的应用程序将自动启动:您无需在应用程序中执行任何操作。