iOS - UIActivityViewController custom share message to different providers
2015-01-27 | Hits
Begin from iOS6, Apple simplify the share process by using UIActivityViewController. The thing is that, Twitter is only allow up to 140 characters on a post, thus we may need to customize the share text for Twitter.
One of the way is to subclass the UIActivityItemProvider. Here is how you can do it:
Customize message for each provider if you want to.
Just treat it as a message, assign it together with image (if you have one). The UIActivityViewController will then pick the correct message for corresponding provider.