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()