我正在尝试安排几个UILocalNotification
s,并且我需要访问已经创建的通知。
是否可以UILocalNotification
创建所有 s 的列表/数组?我可以编辑现有本地通知的触发日期吗?
这是我用于创建本地通知的代码:
UILocalNotification* localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = pickerDate;
localNotification.alertBody = textFieldName.text;
localNotification.alertAction = @"Item date expired!";
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] + 1;