您的位置:首页技术文章
文章详情页

微信开放平台 - ios APP能不能打开微信然后通过微信跳转到指定的URL?

【字号: 日期:2022-10-18 08:31:32浏览:59作者:猪猪

问题描述

代码如下:

/** 跳转到微信,并打开指定的URL @return <#return value description#> */+(BOOL) openWeChat:(NSString *)url{ //wx0b577bb0399ff7d7 NSString *headString = @'weixin://';headString = [headString stringByAppendingString:url]; BOOL canOpen = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@'weixin:/']]; if(canOpen) //打开微信 return [[UIApplication sharedApplication] openURL:[NSURL URLWithString:headString]]; return FALSE;}

问题解答

回答1:

不可行,虽然微信有打开webview的scheme,但是只有部分签约用户才能使用,需要带上appid的

标签: 微信
相关文章: