Mode one: After dialing using this method, when the phone hangs up and does not reverse the application, will stay in the phone record interface, will not back to the application nsurl *url = [Nsurl urlwithstring:@ "tel:// 13838383838 "]; [[uiapplication sharedapplication] openurl:url]; Mode II: After the call will prompt the user whether to dial, When the phone hangs up, it's back to the app, but the shelves are audited, because it's Apple's private api nsurl *url = [Nsurl urlwithstring:@ "telprompt://13838383838"]; [[UIApplication sharedapplication] openURL:url]; Method Three: Use WebView call,, development commonly used in this @property (nonamic, strong) UIWebView *webview; //Use strong reason: WebView is not added to the controller, it must be strongly referenced if (_webview = nil) { _webview = [UIWebView alloc] initwithframe:cgrectzero]; } [_webview Loadrequest:[nsurlrequest requstwithrl:[nsurl urlwithstring:@ "tel://13535464646"]]]; texting Way one: malpractice, Does not reverse the application nsurl *url = [Nsurl urlwithstring:@ "sms://13838383838"]; [[uiapplication sharedapplication] openurl:url]; Way II: Using the MESSAGEUI framework
iOS calls, text messages