2
对于尚未创建的通知(新通知)更改,但对于已创建的通知,先前的声音保留。更改已设置的UILocalNotification的声音名称
我曾尝试:
NSString *soundName = cell.titleLabel.text;
NSArray *notifications = [[UIApplication sharedApplication] scheduledLocalNotifications];
for (UILocalNotification *notif in notifications) {
notif.soundName = [NSString stringWithFormat:@"%@.mp3", soundName];
}
,但它不工作...