文章詳情頁
微信開放平臺 - ios APP能不能打開微信然后通過微信跳轉到指定的URL?
瀏覽:147日期: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的
標簽:
微信
相關文章:
1. objective-c - ios百度地圖定位問題2. html - css 如何添加這種邊框?3. javascript - 求助這種功能有什么好點的插件?4. html5 - 如何解決bootstrap打開模態modal窗口引起頁面抖動?5. javascript - 求助關于js正則問題6. javascript - node.js服務端渲染解疑7. html5 - rudy編譯sass的時候有中文報錯8. javascript - 關于定時器 與 防止連續點擊 問題9. 為何 localStorage、sessionStorage 屬于html5的范疇,但是為何 IE8卻支持?10. 微信開放平臺 - Android調用微信分享不顯示
排行榜
