0
火災這裏是我的UILocalNotification代碼:uilocalnotification不是從應用內觸發,但是從模擬器
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = aNewDate;
localNotification.alertBody = alertBody;
localNotification.soundName = UILocalNotificationDefaultSoundName;
localNotification.applicationIconBadgeNumber = 1;
localNotification.repeatInterval = NSDayCalendarUnit;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
它正確地從模擬火災,而不是從我的iPhone。有什麼建議麼?
參考,我檢查通知在設置和我的應用程序犯規出現在那裏
你檢查設置,並沒有出現,意味着你沒有登記他們 – 2014-10-07 18:52:05
希望把它作爲一個答案,對如何做一個解釋那?生病接受它 – Katushai 2014-10-07 19:00:24