2013-08-23 53 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周,怎麼能做到呢? –