【发布时间】:2015-09-26 08:45:47
【问题描述】:
我注册了UIMutableUserNotificationAction:
let responseTextAction = UIMutableUserNotificationAction()
responseTextAction.identifier = "text"
responseTextAction.title = "New text"
if #available(iOS 9.0, *) {
responseTextAction.behavior = UIUserNotificationActionBehavior.TextInput
} else {
// Fallback on earlier versions
}
这是 iOS 9 的屏幕截图:
从 iOS 8 开始:
如何实现 iOS 8 的文本输入。
【问题讨论】:
-
我想这不是,但同样的事情也适用于 Messages App。但它可能只是私有 API。你不觉得吗?
标签: swift ios8 apple-push-notifications ios9