2010-07-31 3 views

Répondre

1

Annuler toutes les notifications locales avec ce code :

[[UIApplication sharedApplication] cancelAllLocalNotifications]; 

(vous avez réellement besoin juste la ligne médiane


Annuler une notification locale avec cette ligne de code.

[[UIApplication sharedApplication] cancelLocalNotification:theNotification]; 

theNotification est un objet UILocalNotification, donc afin d'annuler une notification spécifique que vous devez tenir à sa UILocalNotification.


Vous pouvez trouver plus de choses dans la documentation Apple: http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/IPhoneOSClientImp/IPhoneOSClientImp.html

Questions connexes