微信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 里的的例子, 可以分享一张图片到朋友圈,能否直接分享多张图片到朋友圈了?

阅读 2.7k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏