IOS calls the browser safari
Note: Apple mobile phone testing (real machine testing) is required as follows)I. Two ways to make a call// Call method 1 (a prompt is displayed, indicating whether to call or not. This is recommended)
UIWebView * callWebview = [[UIWebView alloc] init];
NSURL * telURL = [NSURL URLWithString: @ tel: 10086];
[CallWebview loadRequest: [NSURLRequest requestWithURL: telURL];
// Remember to add to view
[Self. view addSubview: callWebview];
// Call method 2 (direct call)
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ tel: // 10086];
2. send an email
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ mailto: // 88888888@qq.com];
3. send text messages
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ sms: // 13788888888];
4. Call the built-in browser safari
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ http://www.baidu.com];