我知道如何在每天的特定时间触发本地通知。但是如何更改每个通知的UNMutableNotificationContent.Body呢?
现在它只是一遍又一遍地显示相同的文本。
我正在为iOS 10编写代码。
发布于 2017-06-02 02:52:12
你试过这个吗?
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()https://stackoverflow.com/questions/40227097
复制相似问题