2
我有以下代码:使用未解决的标识符: “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"
我在Xcode 8.0上,但是当我尝试自动完成时,它也不能识别它。有任何想法吗 ?谢谢!
你拥有自营'UserNotifications'框架? –