Notification locale hebdomadaire

J'ai une petite question comment pourrais-je faire une notification locale hebdomadaire. Mon application est à propos d'un emploi du time quand l'user a un cours sur 8 heures puis il y a un switch lorsque l'user met le commutateur en marche ce qui signifie qu'il a une notification le 7h45 pour le restr chaque semaine à la même heure. J'espère que vous m'avez compris.

Vous pouvez utiliser repeatInterval avec NSWeekCalendarUnit

 UILocalNotification *localNotification = [[UILocalNotification alloc] init]; localNotification.repeatInterval = NSWeekCalendarUnit; localNotification.fireDate = yourDateandTime; localNotification.alertBody = [NSSsortingng ssortingngWithFormat:@"Alert Fired aton every week at 7:45Am"]; localNotification.soundName = UILocalNotificationDefaultSoundName; localNotification.applicationIconBadgeNumber = 1; [[UIApplication sharedApplication] scheduleLocalNotification:localNotification]; 

Il se répète chaque semaine en même time. Vous pouvez consulter et download un exemple de ce tutoriel