【发布时间】:2021-05-07 00:12:45
【问题描述】:
我已经在我的 iOS 应用程序的应用程序委托中设置了 UNTextInputNotificationAction,但我无法将键盘更改为数字键盘,它似乎在任何选项中都不可用,但我看到其他应用程序具有这样做了。
这是我的行动
let accept = UNNotificationAction(
identifier: "accept",
title: "Accept")
let add = UNTextInputNotificationAction(
identifier: "add_value",
title: "Add value")
let category = UNNotificationCategory(
identifier: categoryIdentifier,
actions: [accept, add],
intentIdentifiers: [])
UNUserNotificationCenter.current()
.setNotificationCategories([category])
如何设置通知输入的键盘?
【问题讨论】:
-
应该输入数字的文本字段叫什么?
标签: ios swift push-notification keyboard