我的 plist 中定义了 5 个项目。它只显示了 4 个。♂️</p>
我试过了Simulator
,实际 iPhone XS Max
的。
<array>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>home</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Home</string>
<key>UIApplicationShortcutItemType</key>
<string>homePressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>security</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Security</string>
<key>UIApplicationShortcutItemType</key>
<string>securityPressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>alert</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Alert</string>
<key>UIApplicationShortcutItemType</key>
<string>alertPressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>network</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Network</string>
<key>UIApplicationShortcutItemType</key>
<string>networkPressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>settings</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Settings</string>
<key>UIApplicationShortcutItemType</key>
<string>settingsPressed</string>
</dict>
</array>
结果
我做错什么了吗?