1.拨打电话:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://68979"]]; //直接拨打 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://68979"]]; //弹出确订提示
2.调用Safari打开网址:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.baidu.com"]];
3.发送邮件:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://260548721@qq.com"]];
4.发送短信:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://68979"]];
5.打开Appstore:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/us/app/id%@", AppID]]];
IOS 8開始支持跳转到应用的设置页:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];