Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

iDay/DoubanActivity

Repository files navigation

DoubanActivity

ios6 ios6 ios6 ios6 ios7 ios7 ios7 ios7

Requirements

Installation

pod 'DoubanActivity'

From source

  • Drag the DoubanActivity/ folder to your project
  • Download REComposeViewController and follow its install instructions
  • Add the MobileCoreServices.framework,SystemConfiguration.framework,Security.framework,CFNetwork.framework,libz.dylib,libxml2.dylib,QuartzGraphics.framework to your project

Getting Started

Send Text with Image

UIActivityViewController *activityView = [[UIActivityViewController alloc] initWithActivityItems:@[@"Title here", [UIImage imageNamed:@"OAuth"]] applicationActivities:@[[[DoubanActivity alloc] initWithViewController:self apiKey:@"04e0b2ab7ca02a8a0ea2180275e07f9e" privateKey:@"4275ee2fa3689a2f"]]];
    activityView.excludedActivityTypes = @[UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard, UIActivityTypePrint];
[self presentViewController:activityView animated:YES completion:nil];

Send link with Image

UIActivityViewController *activityView = [[UIActivityViewController alloc] initWithActivityItems:@[@"Title here", [NSURL URLWithString:@"http://www.google.com"], [NSURL URLWithString:@"https://www.google.com/images/srpr/logo11w.png"]] applicationActivities:@[[[DoubanActivity alloc] initWithViewController:self apiKey:@"04e0b2ab7ca02a8a0ea2180275e07f9e" privateKey:@"4275ee2fa3689a2f"]]];
[self presentViewController:activityView animated:YES completion:nil];

About

An iOS 6 UIActivity subclass implementing uploads to Douban.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published