Notifications swift 3本地通知:如何更改每个通知的显示文本
我知道如何在每天的特定时间发出本地通知。但是如何更改每个通知的UNMutableNotificationContent.Body 现在它只是一遍又一遍地显示相同的文本 我正在为iOS 10编写代码。你试过这个吗Notifications swift 3本地通知:如何更改每个通知的显示文本,notifications,local,Notifications,Local,我知道如何在每天的特定时间发出本地通知。但是如何更改每个通知的UNMutableNotificationContent.Body 现在它只是一遍又一遍地显示相同的文本 我正在为iOS 10编写代码。你试过这个吗 let content = UNMutableNotificationContent() content.title = self.notificationTitle // You could set this variable to anything you like content.
let content = UNMutableNotificationContent()
content.title = self.notificationTitle // You could set this variable to anything you like
content.body = self.notificationBody // You could set this variable to anything you like
content.sound = UNNotificationSound.default()