Tôi đang cố lên lịch một số UILocalNotification
giây và tôi cần có quyền truy cập vào các thông báo đã được tạo.Lấy danh sách UILocalNotifications hiện có và sửa đổi ngày của họ
Có thể tạo danh sách/mảng của tất cả các UILocalNotification
được tạo không? Tôi có thể chỉnh sửa ngày báo cháy của thông báo địa phương hiện tại không?
Đây là mã tôi sử dụng để tạo ra các thông báo địa phương:
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;