如何在共享菜单中列出? [英] How to get listed in the share menu?

查看:96
本文介绍了如何在共享菜单中列出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个消息传递应用,我希望其他应用可以通过共享菜单选项与我的应用分享文字。

I'm creating a messaging app and I would like to enable other apps to share text to my app via the share menu option.

如何在我的应用程序中列出我的应用程序?

How do I get my app listed in there?

这是我要列出的菜单在:结果
图像

This is the menu I would like to get listed in:

推荐答案

您无法在其他应用中自动添加到 UIActivityViewController 。 共享菜单中出现的唯一内容是Apple已添加支持的一些预定义应用程序,以及应用程序决定添加的任何其他应用程序特定活动。

You can't automatically be added to the UIActivityViewController in other apps. The only things that appear on that "share menu" are a few predefined apps that Apple has added support for, as well as any other app specific activities an app decides to add.

您可以将应用程序设置为显示在打开文件的应用程序列表中,但这与您在此处要求的内容不同。

You can setup your app to appear in a list of apps for opening a file but that is not the same as what you are asking for here.

这篇关于如何在共享菜单中列出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆