code show as below:
/**
跳轉(zhuǎn)到微信,并打開(kāi)指定的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)
//打開(kāi)微信
return [[UIApplication sharedApplication] openURL:[NSURL URLWithString:headString]];
return FALSE;
}
歡迎選擇我的課程,讓我們一起見(jiàn)證您的進(jìn)步~~
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