UIlocalNotification est meilleure option si tu sais que ur de planifier des tâches ne peuvent pas dépasser 64 (par application), car une application ne peut pas programmer plus de 64 notification. Vous pouvez également répéter vos tâches uniquement à l'unité seconde, minute, heure, jour, mois, année, jour de la semaine [plus dans la documentation du développeur Apple]. Si vous voulez répéter à votre propre heure personnalisée alors vous devez planifier plus d'une notification (par exemple deux fois par jour à 7h00 et 21h00 puis deux notification à 7h00 et 21h00 avec "repeatInterval: NSDayCalendarUnit ")
Oui. U peut changer.
UILocalNotification * cancelThisNotification = nil; pour (UILocalNotification * someNotification dans [[UIApplication sharedApplication] scheduledLocalNotifications]) { if ([[someNotification.userInfo objectForKey: @ ""] isEqualToString: @ "") { cancelThisNotification = someNotification; someNotification = nil; [release someNotification];
// si voulez annuler
[[UIApplication sharedApplication] cancelLocalNotification: cancelThisNotification];
// si vous souhaitez modifier par ex. date d'incendie
cancelLocalNotification.firedate = [NSDate urdate];
}
}
// mais il est préférable d'annuler toute notification
3.u peut (et pas si u ne veux pas) en allant dans Paramètres => Notification et Chenge ur prefernce ur app
Voici trois questions. – NJones