如何使用3d touch从多个小部件中选择一个作为主屏幕? [英] How to pick one from multiply widgets for home screen using 3d touch?

查看:109
本文介绍了如何使用3d touch从多个小部件中选择一个作为主屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我今天只使用一个小部件时,它非常简单,就像这样:

When I was using only one today widget it was very simple and was like this:

现在,我在应用程序中添加了今天的第二个小部件,就像这样:

Now I added a second today widget to my app, and it is like this:

为什么它消失了?怎么了?今天不应该有两个小部件吗?我可以决定在这里首选哪种小部件吗?

Why it disappeared? What is wrong? Shouldnt be there two today widgets? Can I decide what widget should be preferred here?

苹果说:

为快速操作列表选择小部件.如果您的应用程序具有多个小部件,请选择一个以在有人使用3D Touch向主屏幕上的应用程序图标施加压力时出现在快速操作菜单中.

Choose a widget for the quick action list. 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.

但是在哪里做呢?是用户还是开发者网站?

But where to do this? Is it user or developer site?

推荐答案

将首选小部件的捆绑标识符设置为UIApplicationShortcutWidget,键入您的应用目标的info.plist.

Set bundle identifier of preferred widget to UIApplicationShortcutWidget key in info.plist of your app target.

这篇关于如何使用3d touch从多个小部件中选择一个作为主屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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