• This repository has been archived on 27/Jul/2020
  • Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 11 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An iOS 6 UIActivity subclass implementing uploads to Weixin(WeChat)

WeixinActivity

ios6 ios7 ios8

Requirements

* iOS 6.0+
* ARC
* 而外添加:SystemConfiguration.framework,libz.dylib,libsqlite3.0.dylib,libc++.dylib

Installation

From CocoaPods

pod 'WeixinActivity'

From source

  • Drag the WeixinActivity/ folder to your project

Getting Started

UIActivityViewController *activityView = [[UIActivityViewController alloc] initWithActivityItems:@[@"这里是标题", [UIImage imageNamed:@"Oauth"], [NSURL URLWithString:@"http://www.google.com"]] applicationActivities:activity];
    activityView.excludedActivityTypes = @[UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard, UIActivityTypePrint];
[self presentViewController:activityView animated:YES completion:nil];

微信开放平台文档看这里:

https://open.weixin.qq.com/cgi-bin/frame?t=resource/res_main_tmpl&lang=zh_CN