0
所以我需要你的帮助:我必须在特定的日期和时间设置代码通知。请帮我解决我的代码。在特定的日期和时间通知
UILocalNotification* n1 = [[UILocalNotification alloc] init];
n1.fireDate = [NSDate dateWithTimeIntervalSinceNow: 6];
n1.alertBody = @"one";
UILocalNotification* n2 = [[UILocalNotification alloc] init];
n2.fireDate = [NSDate dateWithTimeIntervalSinceNow: 15];
n2.alertBody = @"two";
[[UIApplication sharedApplication] scheduleLocalNotification: n1];
[[UIApplication sharedApplication] scheduleLocalNotification: n2];
什么问题?什么不行?两个代码? – Larme
什么不起作用(即你的具体问题是什么)? – tilo
通知应该在特定日期工作 – mazeen