您的位置:首页 > 移动开发

[UIApplication sharedApplication] openURL

2013-05-20 14:52 573 查看


[UIApplication sharedApplication] openURL

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto:"]];
 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://"]];

08[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://"]];
 

结束通话后自动返回到应用:
UIWebView*tempWebview =[[UIWebView alloc] init];
NSURL *telURL =[NSURL URLWithString:@"tel:phoneNumber"];
[tempWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
[self.view addSubview:tempWebview];
 
可能不能通过审核
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://phoneNumber"]];

调用浏览器 safari
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: