3D Touch 快捷方式小工具 [英] 3D Touch Shortcut Widget

查看:34
本文介绍了3D Touch 快捷方式小工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 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.

请参阅文档:https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW32

这篇关于3D Touch 快捷方式小工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆