나는 다음과 같은 코드를 가지고 :사용 : "UNMutableNotificationContent"
func sendLucidNotification() {
let content = UNMutableNotificationContent()
content.title = "10 Second Notification Demo"
content.subtitle = "From MakeAppPie.com"
content.body = "Notification after 10 seconds - Your pizza is Ready!!"
content.categoryIdentifier = "message"
}
나는 호출하면, UNMutableNotificationContent, 또는 나는 다음과 같은 오류 얻을 수있는 "UNMutableNotification"변화 :
Use of unresolved identifier: "UNMutableNotificationContent"
I에게 Xcode 8.0에서,하지만 자동 완성을 시도 할 때도 인식하지 못합니다. 어떤 아이디어? 고맙습니다!
당신이'UserNotifications' 프레임 워크를 가져올 수 있나요? –