作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将按钮添加到具有系列类型“.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/
我是一名优秀的程序员,十分优秀!