2013-08-23 4 views

답변

1

사용 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]; 
+0

시도하고 난 모든 12 주 있음을 발사 할 경우, 어떻게 수행 할 수 있습니다? –

관련 문제