IOS 微信跳到公众号


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


//如没安装微信 复制

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 微信跳到公众号)