美文网首页
IOS 微信跳到公众号

IOS 微信跳到公众号

作者: HizB | 来源:发表于2016-03-18 10:28 被阅读407次

首先要到微信开发平台,绑定对应的公众号!


//如没安装微信 复制

if (![WXApi isWXAppInstalled]) {

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

[pasteboard setString:phoneNumber];

[Tools showMsg:@"已复制公众号"];

return;

}

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

req.profileType =WXBizProfileType_Normal;

req.username = @"hahaha"; /*公众号原始ID*/

[WXApi sendReq:req];

相关文章

网友评论

      本文标题:IOS 微信跳到公众号

      本文链接:https://www.haomeiwen.com/subject/ybnclttx.html