Latest 1.2.2
Homepage https://github.com/sascha/SSCWhatsAppActivity
License MIT
Platforms ios 6.0, requires ARC
Authors

Version
Platform

Requirements

iOS 6.0+ is required.

Installation

SSCWhatsAppActivity is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "SSCWhatsAppActivity"

Usage

Typical usage will look something like this:

NSString *stringToShare = @"This is a message I'd like to share via WhatsApp";
NSURL *urlToShare = [NSURL URLWithString:@"https://github.com/sascha/SSCWhatsAppActivity"];

SSCWhatsAppActivity *whatsAppActivity = [[SSCWhatsAppActivity alloc] init];

UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[stringToShare, urlToShare] applicationActivities:@[whatsAppActivity]];

[self presentViewController:activityViewController animated:YES completion:nil];

Please note that you can only share instances of NSString, NSURL or UIImage. WhatsApp does not support sharing text and images at the same time, so as soon as you provide an UIImage all NSString and NSURL instances will be ignored. In addition you can only share one UIImage. Have a look at the demo app to see it in context.

Demo screenshot

Author

Sascha Schwabbauer, [email protected]

License

SSCWhatsAppActivity is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SSCWhatsAppActivity",
    "version": "1.2.2",
    "summary": "A UIActivity subclass for sharing images and messages with WhatsApp.",
    "homepage": "https://github.com/sascha/SSCWhatsAppActivity",
    "screenshots": "https://raw.github.com/sascha/SSCWhatsAppActivity/master/screenshot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sascha Schwabbauer": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sascha/SSCWhatsAppActivity.git",
        "tag": "1.2.2"
    },
    "social_media_url": "https://twitter.com/_SaschaS",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "SSCWhatsAppActivity/*.{h,m}",
    "resources": "SSCWhatsAppActivity/*.png"
}

Pin It on Pinterest

Share This