How to pick one from multiply widgets for home screen using 3d touch?

人走茶凉 提交于 2019-12-19 18:28:34

问题


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?

Apple says:

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?


回答1:


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



来源:https://stackoverflow.com/questions/40693701/how-to-pick-one-from-multiply-widgets-for-home-screen-using-3d-touch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!