-2
매년 ios 앱에서 현지 알림을 예약하여 매년 28 월 6 일에 실행합니다. 나는 이것에 관해 googled했다. 그러나 얻을 수 없었다. 그렇게하는 방법? 감사합니다.매년 특정 날짜에 지역 알림을 실행합니다.
매년 ios 앱에서 현지 알림을 예약하여 매년 28 월 6 일에 실행합니다. 나는 이것에 관해 googled했다. 그러나 얻을 수 없었다. 그렇게하는 방법? 감사합니다.매년 특정 날짜에 지역 알림을 실행합니다.
사용 UILocalNotification
할 수 있습니다.
는
UILocalNotification *notif = [[cls alloc] init];
NSDateFormatter *df=[[NSDateFormatter alloc]init];
[df setDateFormat:@"dd-MM-yyyy"];
notif.fireDate = [df dateFromString:@"28-06-2013"];
notif.timeZone = [NSTimeZone defaultTimeZone];
notif.alertBody = @"You Reminder";
notif.alertAction = @"Show";
notif.soundName = UILocalNotificationDefaultSoundName;
notif.applicationIconBadgeNumber = 1;
notif.repeatInterval=NSYearCalendarUnit;
[[UIApplication sharedApplication] scheduleLocalNotification:notif];
시도하고 난 모든 12 주 있음을 발사 할 경우, 어떻게 수행 할 수 있습니다? –