美文网首页iOS Developer
ios app唤起UC,QQ浏览器打开页面

ios app唤起UC,QQ浏览器打开页面

作者: 千年积木 | 来源:发表于2017-03-17 10:26 被阅读607次

记得在Plist里配置一下
<pre>
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mttbrowser://"]]){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"mttbrowser://url=%@",shareLink]]];
}
else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"ucbrowser://"]]){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"ucbrowser://%@",shareLink]]];
}
<pre>

相关文章

网友评论

    本文标题:ios app唤起UC,QQ浏览器打开页面

    本文链接:https://www.haomeiwen.com/subject/joxenttx.html