版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
2 篇文章0 订阅
订阅专栏
WXMediaMessage *message = [WXMediaMessagemessage];
// [message setThumbImage:imageForShare];
WXImageObject *ext = [WXImageObjectobject];
// NSData *dataimg =UIImageJPEGRepresentation(imageForShare,0.8);
ext.imageData=dataimg;
message.mediaObject = ext;
SendMessageToWXReq* req1 = [[SendMessageToWXReqalloc]init];
req1.bText =NO;
req1.message = message;
req1.scene =WXSceneTimeline;//选择发送到朋友圈,默认值为WXSceneSession,发送到会话
[WXApisendReq:req1];