How to share content/data through other apps in an iOS app like we do in an Android app with Intent.ACTION_SEND?
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.
精彩评论