我正在使用UILocalNotifications。我遇到的一個問題是,在XCode中重新啓動我的應用後,與通知關聯的數據似乎被刪除。以下是我所遵循的步驟。應用程序關閉後,UILocalNotification爲零
-start XCode中
該應用 - 接收所述通知
-stop XCode中
該應用-start XCode中
-go該應用通知中心並點擊其中一個通知我的應用程序
-break in application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
在這一點上,如果我檢查notification
我發現它是nil
。
任何想法出了什麼問題?謝謝。
我也遇到過這種情況。我可以使用相同的步驟非常可靠地重現 – evanflash