我正在尝试为我的应用程序设置快速操作。我可以静态或动态地创建它们。
我们可以动态更改语言,快速操作应与应用程序中设置的语言相匹配。通过动态快速操作,一切都很简单。
我想做的是在应用程序首次启动之前提供快速操作。这意味着还要配置静态操作。
问题: 有没有办法先有静态快速 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/