3
毎日特定の時刻にトリガーするローカル通知を作成する方法を知っています。しかし、通知ごとにUNMutableNotificationContent.Bodyをどのように変更するのですか?swift 3ローカル通知:通知ごとに表示テキストを変更する方法
これで同じテキストを何度も何度も表示するだけです。
私はiOS 10をコーディングしています。
毎日特定の時刻にトリガーするローカル通知を作成する方法を知っています。しかし、通知ごとにUNMutableNotificationContent.Bodyをどのように変更するのですか?swift 3ローカル通知:通知ごとに表示テキストを変更する方法
これで同じテキストを何度も何度も表示するだけです。
私はiOS 10をコーディングしています。
試しましたか?
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()