本地推送UILocalNotification soundName前台为什么没有声音

2025-03-23 19:06:13
推荐回答(1个)
回答1:

首先是添加一个本地通知到系统中,代码如下: // 初始化本地通知对象 UILocalNotification *notification = [[UILocalNotification alloc] init]; if (notification) { // 设置通知的提醒时间 NSDate *currentDate = [NSDate date]; notificatio