IOS 10 3Dtouch_HomeScreenQuickAction

APP 图标重压快速启动

IMG_1559.PNG

静态方式 设置

在 info.plist 添加

      <key>UIApplicationShortcutItems</key>
      <dict>  // 静态 和动态 的启动项最多四个 ,静态的优先显示
                 <dict>
                       1.   <key>UIApplicationShortcutItemType</key>//字符标识ID
                          <string>任意的字符唯一标识必填</string>
                    2.     <key>UIApplictionShortcuyItemTitle</key>
                        <string>显示主标题必填</string>
                    3.      <key>UIApplicationShortcutItemSubtitle</key>
                          <string>子标题</string>
                    4.    <key>UIApplicationShortcutItemIconType</key>
                        <string>系统图标类型,自定义的话请不要填写</sting>
                   5.     <key>UIApplicationShortcutItemIconFile</key>
                        <string>自定义图标的名字</string>
                   6.     <key>UIApplicationShortcutItemUserInfo</key>
                          <dict>自定义的预制字典信息</dict>
                 </dict>
     </dict>

动态方式设置

    在APP启动的时候 设置 UIApplication 的 shortCutItems(NSArray) 的即可
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容