ios - 覆盖静态 UIApplicationShortcutItems

标签 ios 3dtouch quickaction

我正在尝试为我的应用程序设置快速操作。我可以静态或动态地创建它们。

我们可以动态更改语言,快速操作应与应用程序中设置的语言相匹配。通过动态快速操作,一切都很简单。

我想做的是在应用程序首次启动之前提供快速操作。这意味着还要配置静态操作。

问题: 有没有办法先有静态快速 Action ,然后用动态 Action 替换它们?现在似乎附加了第一个静态操作,因为我们只有三个动态操作。

最佳答案

我相信目前没有办法做到这一点。来自文档:

Within this limit, the system shows your static quick actions first, starting at the topmost position in the menu. If your static items do not exhaust the limit and you have also defined dynamic quick actions, then one or more of your dynamic quick actions is displayed.

关于ios - 覆盖静态 UIApplicationShortcutItems,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33824128/

相关文章:

ios - 无法将类型 'Int' 的值转换为预期的参数类型 '(inout UnsafeMutableBufferPointer<_>, inout Int) throws -> Void'

Swift SpriteKit 3D Touch 和触摸移动

IOS9。是否可以在应用程序中禁用 3D 触控?

swift - 如何在不进入应用程序的情况下从快速操作菜单复制到 UIPasteBoard?

ios - 3D touch quick actions preview view controller 只有一次

ios - 将数据从 iOS 应用程序发送到外部连接的非 iOS 设备

iphone - Objective C 中使用 coreplot 的贝塞尔曲线

iOS 触觉触摸 API 的可能性

c++ - 在 iOS 上实现 TensorFlow Attention OCR