开发者

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

开发者 https://www.devze.com 2023-04-02 09:46 出处:网络
In Android, we can easily share content (text, images, video etc) through the Intent.ACTION_SEND startactivity api.

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 i开发者_开发技巧OS api support or do I have to use 3rd party sdks or code my own interface layer?

Thanks in advance!


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.


Use UIActivityViewController for sharing content with social networking apps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号