【发布时间】:2017-03-06 17:50:03
【问题描述】:
我知道如何制作每天在特定时间触发的本地通知。但是如何更改每个通知的 UNMutableNotificationContent.Body?
现在它只是一遍又一遍地显示相同的文本。
我正在为 iOS 10 编写代码。
【问题讨论】:
标签: notifications local
我知道如何制作每天在特定时间触发的本地通知。但是如何更改每个通知的 UNMutableNotificationContent.Body?
现在它只是一遍又一遍地显示相同的文本。
我正在为 iOS 10 编写代码。
【问题讨论】:
标签: notifications local
你试过了吗?
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()
【讨论】: