【问题标题】:iOS: How can I change the app name in the Open-With action sheet in Info.plist?iOS:如何在 Info.plist 的 Open-With 操作表中更改应用名称?
【发布时间】:2017-09-26 14:20:51
【问题描述】:

我正在 iOS 中开发一个聊天应用程序。

我的目标是处理来自其他应用程序的图像,包括消息。

所以我在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>

现在我可以在操作表中看到我的应用,但应用名称的前缀为 Import with

如何仅用我的应用名称替换它? (如何删除 Import with?)。

【问题讨论】:

    标签: ios ios-app-extension info-plist


    【解决方案1】:

    您应该修改操作扩展的捆绑显示名称 (CFBundleDisplayName)。

    <key>CFBundleDisplayName</key>
    <string>[Your App]</string>
    

    【讨论】:

      猜你喜欢
      • 2021-10-07
      • 1970-01-01
      • 2010-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多