文章详情页
微信开放平台 - ios APP能不能打开微信然后通过微信跳转到指定的URL?
浏览:341日期:2022-10-18 08:31:32
问题描述
代码如下:
/** 跳转到微信,并打开指定的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的
标签:
微信
相关文章:
排行榜

网公网安备