openURL跳转到电话、短信、设置、项目设置等

// 跳转到打电话
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];

// 跳转到发短信
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://10000"]];

// 跳转到项目设置
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

// 跳转到设置-隐私-定位服务
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];

你可能感兴趣的:(openURL跳转到电话、短信、设置、项目设置等)