Note: The following requires an Apple phone test (real machine test)
one of the two ways to make a call //how to make a phone call1( pop-up prompts for call, recommend this)
UIWebView*callwebview =[[uiwebviewalloc] init];
nsurl *telurl =[nsurlurlwithstring:@ "tel:10086"];
[Callwebviewloadrequest: [nsurlrequestrequestwithurl: Telurl]];
// Remember to add to view
[Self. View addsubview: Callwebview];
// call way 2(direct dial)
[ [uiapplicationsharedapplication] openURL: [nsurl urlwithstring:@ "tel://10086"];
two. Send an email
[ [uiapplicationsharedapplication] openURL: [nsurl URLWithString:@ "Mailto://[email protected]"];
Three. Send SMS
[ [uiapplicationsharedapplication] openURL: [nsurl URLWithString:@ "sms://13788888888"];
Four. Call your own browser safari
[ [uiapplicationsharedapplication] openURL: [nsurl URLWithString:@ "http://www.baidu.com"];
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
IOS Call SMS (SMS) e-mail (mail) call your own browser safari