Is there a limit to how many UIApplicationShortcut

2020-04-02 07:31发布

I want to add the new 3D/Force Touch feature (UIApplicationShortcutItem) to my app but I was wondering whether there is or isn't a limit to how many you can have on a single app?

I've had a look on the documentation but don't see a mention of a limit: https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplicationShortcutItem_class/

1条回答
Fickle 薄情
2楼-- · 2020-04-02 08:02

iOS 9 displays up to four Home screen quick actions for your app. Within this limit, the system shows your static quick actions first, starting at the topmost position in the menu. If your static items do not exhaust the limit and you have also defined dynamic quick actions, then one or more of your dynamic quick actions is displayed.

You can refer to the Apple’s sample project .

Apple Docs

查看更多
登录 后发表回答