gpt4 book ai didi

ios - 如何将按钮添加到 iOS 14 小部件

转载 作者:行者123 更新时间:2023-12-01 18:03:30 24 4
gpt4 key购买 nike

我正在尝试将按钮添加到具有系列类型“.systemLarge”的小部件。我想在不打开应用程序的情况下执行一些代码。
有谁知道该怎么做?
例如,快捷方式应用程序小部件包括您可以点击以执行快捷方式而无需打开应用程序的按钮。

最佳答案

小部件是只读的。 Shortcuts 应用程序是一个异常(exception)。
https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension

Widgets present read-only information and don’t support interactive elements such as scrolling elements or switches. WidgetKit omits interactive elements when rendering a widget’s content.

关于ios - 如何将按钮添加到 iOS 14 小部件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62665936/

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