文章詳情頁
微信開放平臺 - ios APP能不能打開微信然后通過微信跳轉到指定的URL?
瀏覽:151日期: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的
標簽:
微信
相關文章:
排行榜
