3D Touch 快捷方式小工具 [英] 3D Touch Shortcut Widget
问题描述
我正在尝试在 iOS 10 中通过 3dtouch 实现新的快速菜单小部件".我的应用有多个今日扩展和苹果指南报告
i'm trying to implement new "quick menu widget" in iOS 10 available with 3dtouch. My app has multiple today extension and apple guidelines report
如果您的应用有多个小部件,请在有人使用 3D Touch 对主屏幕上的应用图标施加压力时出现的快速操作菜单中选择一个.
If your app has multiple widgets, pick one to appear in the quick action menu that appears when someone applies pressure to your app icon on the Home screen using 3D Touch.
我不明白我可以在哪里改变"它!
I don't understand where i can "change" that!
只有一个小部件也能正常工作.
With only one widget all works as well.
推荐答案
有一个新的 Info.plist 键 UIApplicationShortcutWidget
您需要将其设置为小部件的捆绑标识符.
There is a new Info.plist key UIApplicationShortcutWidget
which you need to set to the bundle identifier of your widget.
这篇关于3D Touch 快捷方式小工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!