code show as below:
/**
跳转到微信,并打开指定的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;
}
仅有的幸福2017-05-17 10:08:24
It’s not feasible. Although WeChat has a scheme to open webview, it can only be used by some contracted users. You need to bring your appid