您可以有多少个UIApplicationShortcutItems是否有限制? [英] Is there a limit to how many UIApplicationShortcutItems you can have?

查看:184
本文介绍了您可以有多少个UIApplicationShortcutItems是否有限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中添加新的3D/强制触摸功能(UIApplicationShortcutItem),但我想知道单个应用程序中可以有多少个吗?

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/

推荐答案

iOS 9最多可以为您的应用显示四个主屏幕快速操作.在此限制内,系统会从菜单的最高位置开始首先显示您的静态快速操作.如果您的静态项目没有用尽限制,并且您还定义了动态快速操作,则会显示一个或多个动态快速操作.

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.

您可以参考 Apple的示例项目

Apple文档

这篇关于您可以有多少个UIApplicationShortcutItems是否有限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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