How to share content/data through other apps in an iOS app like we do in an Android app with Intent.ACTION_SEND?

你。 提交于 2019-12-12 11:14:52

问题


In Android, we can easily share content (text, images, video etc) through the Intent.ACTION_SEND startactivity api.

I have an app doing that perfectly already, and have a parallel iOS app that I hope to implement the same feature.

Is there any iOS api support or do I have to use 3rd party sdks or code my own interface layer?

Thanks in advance!


回答1:


You can do that by implementing a custom URL scheme. Also check this blog out.

This long question approaches the techniques for transmitting information as documents. Be aware that due to the sandboxing, "moving" huge piles of data around (from one application to another) will not be straightforward and you will have to slightly rethink your interaction process.

Several sites attempt to list the schemes, but unless Apple decides to publish them, they're bound to be inaccurate.




回答2:


Use UIActivityViewController for sharing content with social networking apps.



来源:https://stackoverflow.com/questions/7294221/how-to-share-content-data-through-other-apps-in-an-ios-app-like-we-do-in-an-andr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!