I used the project UILocalNotification implements a reminder, but the time to remind the user can modify, if the user modifies how I undo the last registered UILocalNotification reminder, and then I re-registered in accordance with a modification was time to remind UILocalNotification
Reply:
[[UIApplication sharedApplication] cancelLocalNotification: localNotification]; This is already specified in the registration was canceled Notification,
Suppose I have five projects notification me how to recognize the way that is
Reply:
Top
Reply:
I have not solved that way Dingding top
Reply:
NSArray * myArray = [[UIApplication sharedApplication] scheduledLocalNotifications];
for (int i = 0; i <[myArray count]; i + +) {
UILocalNotification * myUILocalNotification = [myArray objectAtIndex: i];
if ([[[myUILocalNotification userInfo] objectForKey: @ "key1"] intValue] == switch1.tag) {
[[UIApplication sharedApplication] cancelLocalNotification: myUILocalNotification];
}
}
Reply:
Traversal out with userInfo tag.
No comments:
Post a Comment