UILocalNotification* localNotification = [[UILocalNotificationalloc] init];
localNotification.alertBody = @"Your alert message";
localNotification.timeZone = [NSTimeZone defaultTimeZone];
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
我没有收到本地通知,谁能告诉我如何获得本地通知。
最佳答案
localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:60];
试试这个!!!!
关于ios - 如何创建本地通知ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23976898/