我正在使用以下代码
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = fireDate;
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.alertBody = @"Have you seen your Chiropractic this Month?";
localNotification.alertAction = @"Continue";
localNotification.repeatInterval = NSMonthCalendarUnit;
localNotification.applicationIconBadgeNumber = 0;
// Schedule it with the app
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
[localNotification release];
我如何设置“fireDate”以便此通知仅在每月 5 号运行。其次,此代码位于 appDelegate.h 中。我将如何设置它以便它每月只启动一个通知