文章详情页
微信开放平台 - ios APP能不能打开微信然后通过微信跳转到指定的URL?
问题描述
代码如下:
/** 跳转到微信,并打开指定的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. angular.js - 通过数据中children的个数自动生成能点击展开的div2. javascript - 百度地图一开始设置了中心点,怎么通过按钮在调转到对应的中心点????3. angular.js - ui-router 有没有手动重新加载路由配置的方法?4. angular.js - angular做点击购买时的遮罩层5. objective-c - 类似微信单聊的功能,想把聊天记录直接存入Sqlite,怎么建表.6. angular.js - ngview配置路由失败7. angular.js - $scope获取不到值8. css3 - Firefox 字号相对IE、Chrome更大,如何在CSS中统一?9. CSS3 动画是表现还是行为?10. angular.js - angularJS ng-show的显示问题
排行榜