- iOS 6.0+
- ARC
From CocoaPods
pod 'WeixinActivity'
- Drag the
WeixinActivity/
folder to your project
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];
http://open.weixin.qq.com/document/gettingstart/ios/?lang=zh_CN