代码之家  ›  专栏  ›  技术社区  ›  KRA2008

共享iOS Notes内容时,用于接收iOS Notes内容的应用程序间通信挂钩/API是什么?(截图)[重复]

  •  0
  • KRA2008  · 技术社区  · 8 年前

    我正在浏览文档,发现了很多关于应用程序间通信、发送文件以及从其他应用程序启动应用程序的不同内容,但我在文档中没有找到任何截图或示例结果。我感到不知所措,我只想知道在下面的屏幕截图中实际使用了什么来完成这件事:

    the overlay that opens when you click the little arrow up box in the upper right corner of the Notes app

    单击覆盖中的一个应用程序选项后,将打开另一个屏幕,其中包含注释文件中的文本,这是一个不同的屏幕,具体取决于您的选择。如果单击消息,它将准备发送文本。如果单击Messenger,它将准备发送消息等。

    看起来这只是注册一个对应的文件类型,但我不确定Notes文件到底是什么类型的文件,也不确定这是否是目前实际发生的情况。明确地说,我在问:Messages、Mail、Slack和Messenger在他们的应用程序中做了什么,使他们出现在列表中,并在被选中时做出响应?

    编辑: 我已将此添加到我的plist文件中,但在Notes应用程序中仍然没有看到它:

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
        <key>CFBundleTypeName</key>
        <string>text</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
            <array>
                <string>public.plain-text</string>
                <string>public.text</string>
                <string>public.utf8-plain-text</string>
                <string>public.utf16-external-plain-​text</string>
                <string>public.utf16-plain-text</string>
                <string>com.apple.traditional-mac-​plain-text</string>
            </array>
        </dict>
    </array>
    
    2 回复  |  直到 8 年前
        2
  •  0
  •   KRA2008    7 年前