iOS:如何在Info.plist中的Open-With操作表中更改应用程序名称?
问题描述:
我正在iOS上开发一个聊天应用程序。iOS:如何在Info.plist中的Open-With操作表中更改应用程序名称?
我的目标是处理来自其他应用程序的图像,包括消息。
因此,我增加了以下按键Info.plist
:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string></string>
</array>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>Images</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>public.image</string>
</array>
</dict>
</array>
现在我可以看到我的应用程序的动作片,但应用程序名称的前缀导入与。
如何将其替换为只有我的应用程序名称? (如何删除导入?)。
答
您应该修改行动分机的捆绑显示名称(CFBundleDisplayName
)。
<key>CFBundleDisplayName</key>
<string>[Your App]</string>