搜索

首页  >  问答  >  正文

objective-c - 微信ios sdk 能否一次发送多张图片到朋友圈?

- (void)sendImageContent {
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"res1" ofType:@"jpg"];
    NSData *imageData = [NSData dataWithContentsOfFile:filePath];
//    UIImage *thumbImage = [UIImage imageNamed:@"res1thumb.png"];
    
    NSData *imgData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://weixintest.ihk.cn/ihkwx_upload/heji/material/img/20160414/1460616012469.jpg"]];
    NSData *compImg = [self checkThumbImageSize:imgData];

    [WXApiRequestHandler sendImageData:imageData
                               TagName:kImageTagName
                            MessageExt:kMessageExt
                                Action:kMessageAction
                            ThumbImage:[UIImage imageWithData:compImg]
                               InScene:_currentScene];
}
 

微信sdk demo 里的的例子, 可以分享一张图片到朋友圈,能否直接分享多张图片到朋友圈了?

阿神阿神2771 天前652

全部回复(0)我来回复

暂无回复
  • 取消回复