-1
如何在12小時後準確設置我的localNotifications fire date屬性? 我的代碼片段如下,本地NSNotification火災日期需要在12小時後設置
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
if (localNotif == nil)
return;
localNotif.fireDate = [NSDate date]; // how to set after 12 hours
localNotif.timeZone = [NSTimeZone defaultTimeZone];
任何建議表示讚賞。