iOS URL Scheme
来源:互联网 发布:室内在线设计软件 编辑:程序博客网 时间:2024/06/05 00:23
需要真机测试
/**
* 发送邮件
*/
[[UIApplicationsharedApplication]openURL:[NSURL URLWithString:@"mailto:devprograms@apple.com"]];
/**
* 打电话
*/
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:[NSStringstringWithFormat:@"tel://%@",@"110"]]];
/**
* 跳转到QQ
*/
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:@"mqq://"]];
/**
* 发短信
*/
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:@"sms:1-408-555-1212"]];
/**
* 判断是否安装QQ
*/
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mqq://"]]) {
NSLog(@"已安装");
}else{
NSLog(@"未安装");
}
更多请参阅:iPhoneURLScheme_Reference
- ios URL Scheme
- ios URL Scheme
- ios 常用 url scheme
- ios的URL Scheme
- iOS URL scheme
- iOS URL Scheme
- iOS URL scheme
- iOS URL scheme
- iOS URL scheme 详解
- iOS 设置URL Scheme
- iOS中的URL Scheme
- iOS中的URL Scheme
- iOS 设置Url Scheme
- IOS App自定义URL scheme
- iOS 开发之 URL Scheme
- iOS 开发之 URL Scheme
- 常用iOS URL Scheme附录
- iOS URL Scheme 使用详解
- 学习iOS,你能迎娶到白富美吗?
- Pots(POJ_3414)
- 分离式JavaScript
- 安全密码(2013中南大学研究生复试上机题)
- android oom 全解析
- iOS URL Scheme
- web服务器
- SEO外链专员操作规范
- Leetcode: Invert Binary Tree
- 超长正整数的相加
- [php] smarty模板引擎
- Swift学习笔记(十八)泛型
- TCP状态转移图学习总结
- Cordys连接JDBC ODBC 需把 JDBC Jar放到CLASSPATH环境变量中