iOS calls, text messages

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.