3D Touch Shortcut Widget

心不动则不痛 提交于 2019-12-23 07:04:56

问题


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

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.


回答1:


There is a new Info.plist key UIApplicationShortcutWidget which you need to set to the bundle identifier of your widget.

See the documentation at: https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW32



来源:https://stackoverflow.com/questions/38241549/3d-touch-shortcut-widget

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