thực sự đang phát triển một dự án báo động, bây giờ tôi có nghi ngờ về thông báo Địa phương. làm thế nào tôi có thể xác định một thông báo cụ thể. chúng tôi thậm chí không thể đặt thẻ thành thông báo địa phương, sau đó làm cách nào tôi có thể phân biệt chúng.cách xác định thông báo cụ thể trong ios sdk
dụ:
thông báo: 1
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = selectedDate;
localNotification.alertBody = @"you got work";
localNotification.alertAction = @"Snooze";
localNotification.repeatInterval = NSDayCalendarUnit;
localNotification.soundName = UILocalNotificationDefaultSoundName;
NSDictionary *infoDict = [NSDictionary dictionaryWithObjectsAndKeys:@"setNotificationForEveryDay", @"key", nil];
localNotification.userInfo = infoDict;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
[localNotification release];
thông báo: 2,
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = another selectedDate;
localNotification.alertBody = @"i got work";
localNotification.alertAction = @"Snooze";
localNotification.repeatInterval = NSDayCalendarUnit;
localNotification.soundName = UILocalNotificationDefaultSoundName;
NSDictionary *infoDict = [NSDictionary dictionaryWithObjectsAndKeys:@"setNotificationForEveryDay", @"key", nil];
localNotification.userInfo = infoDict;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
[localNotification release];
bây giờ tôi đang ở trong tình huống để xóa các thông báo thứ hai làm thế nào tôi có thể làm điều đó ... hãy giúp tôi .. cảm ơn trước ..