//调用短信
- (void)callMsg:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://135587"]];
}
//调用电话
- (void)callTel:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://135587"]];
}
//调用Safari浏览器
- (void)callSafari:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.baidu.com/"]];
}
// 调用email
- (void)callEmail:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://[email protected]"]];
}
时间: 2024-10-28 10:25:26