objective-c - 微信ios sdk 能否一次发送多张图片到朋友圈?
阿神
阿神 2017-04-18 09:49:10
0
0
656
- (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 里的的例子, 可以分享一张图片到朋友圈,能否直接分享多张图片到朋友圈了?

阿神
阿神

闭关修行中......

membalas semua(0)
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan