Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit to how many UIApplicationShortcutItems you can have?

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/

like image 836
DocAsh59 Avatar asked Oct 02 '15 09:10

DocAsh59


1 Answers

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

like image 94
Vakas Avatar answered Sep 28 '22 03:09

Vakas