gpt4 book ai didi

iphone - 带有三个按钮的 iOS 推送通知警报

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:22:51 27 4
gpt4 key购买 nike

我需要在推送通知警报上使用 3 个按钮。 "is"、“否”、“稍后提醒”。目前,我只找到两个按钮 VIEW 和 CANCEL,我们可以在其中自定义这些按钮的名称,但是第三个呢?我们不能拥有它吗?我们不能在推送警报上有另一个按钮吗?苹果是否限制操作系统这样做?那为什么?

最佳答案

根据APNS documentation ,您唯一的选择是在一个和两个按钮之间:

action-loc-key

string or null

If a string is specified, the system displays an alert with two buttons, whose behavior is described in Table 3-1. The string is used as a key to get a localized string in the current localization to use for the right button’s title instead of “View”. If the value is null, the system displays an alert with a single OK button that simply dismisses the alert when tapped. See “Localized Formatted Strings” for more information.

Apple 似乎对 UI 应该是什么样子有着强烈的看法,他们没有给开发人员太多的灵 active 。

关于iphone - 带有三个按钮的 iOS 推送通知警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17161011/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com