收藏
回答

iOS微信好友分享 只能唤起微信,但是无法选择目标用户分享?

iOS微信好友分享 只能唤起微信,但是无法选择目标用户分享

  WXMediaMessage *message = [WXMediaMessage message];

    message.title = @"分享标题";

    message.description = @"分享描述";

    [message setThumbImage:[UIImage imageNamed:@"wx"]];

    

    WXWebpageObject *webpageObject = [WXWebpageObject object];

    webpageObject.webpageUrl = @"https://open.weixin.qq.com";

    message.mediaObject = webpageObject;

    

    SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init];

    req.bText = NO;

    req.message = message;

    // 微信好友

    req.scene = WXSceneSession;

    [WXApi sendReq:req completion:^(BOOL success) {

        NSLog(@"");

    }];


回答关注问题邀请回答
收藏

1 个回答

  • Mortred
    Mortred
    08-07

    老哥 请教下有解决方案吗

    08-07
    有用
    回复
登录 后发表内容