我希望我的应用程序出现在UIActivityViewController
文本中,在其他应用程序中。例如,当从 Notes 应用程序共享时,如下所示。
将以下内容添加到 Info.plist 并没有产生任何可见的结果(在 Notes、Evernote 和 Simplenote 中):
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string>icon-text-57.png</string>
<string>icon-text-72.png</string>
<string>icon-text-114.png</string>
</array>
<key>CFBundleTypeName</key>
<string>Text</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.text</string>
<string>public.plain-text</string>
<string>public.utf8-plain-text</string>
<string>public.utf16-external-plain-text</string>
<string>public.utf16-plain-text</string>
<string>public.rtf</string>
</array>
</dict>
</array>
这可能吗?如何?