Je souhaite ajouter une notification en fonction d'une heure et d'une date définies par l'utilisateur. Comment puis je faire ça?Comment obtenir une notification locale dans l'iPhone
-3
A
Répondre
0
UILocalNotification *notif = [[UILocalNotification alloc] init];
notif.alertBody = @"HI";
[notif setFireDate:DATE];// fire the notification in ten minutes
notif.alertAction = @"View";
notif.timeZone = [NSTimeZone defaultTimeZone];
[[UIApplication sharedApplication] scheduleLocalNotification:notif];
0
Configurez un UILocalNotification
et programmez-le avec scheduleLocalNotification:
de UIApplication
.
3
Ce que vous devez faire est expliqué dans l'amende documentation.
Questions connexes
- 1. Comment obtenir une notification locale dans Android lorsque l'application s'arrête?
- 2. Comment faire une notification locale dans Android?
- 3. comment annuler une notification locale dans iphone
- 4. Notification locale dans l'iphone
- 5. Notification locale
- 6. Comment réaliser une notification locale dans android 2.3.1?
- 7. Comment initialiser la notification locale?
- 8. Notification locale Android dans Unity
- 9. Notification locale multiple dans l'iPhone
- 10. Pousser une notification qui annule ou replanifie une notification locale?
- 11. Comment écrire une notification locale dans iOS 3.1.3?
- 12. répétition de notification locale
- 13. notification locale iPhone sdk
- 14. Notification locale ou push
- 15. notification locale basée
- 16. Notification locale ios didreceivelocalnotification
- 17. iOS personnalisation notification locale
- 18. question notification locale
- 19. Comment afficher la notification locale - Worklight
- 20. Comment obtenir une notification locale une fois que le dossier n'est pas vide?
- 21. notification locale, temps de prise
- 22. Notification push locale dans l'application mac
- 23. Comment définir une notification locale sur Mac OS X?
- 24. Notification locale avec différents NSDate
- 25. Notification locale non annulée dans l'iphone
- 26. Comment intercepter la notification locale événement onclick dans phonegap
- 27. Problèmes de notification locale dans iOS
- 28. Comment répéter une notification locale pour l'intervalle de temps personnalisé
- 29. iPhone: Comment définir une notification locale quotidienne/horaire répétée?
- 30. notification locale ne pas tirer dans iphone