iOS development-application calls between apps (2)

Source: Internet
Author: User

In the previous article, you explained how to invoke the problem between your apps, and today we'll talk about how to call an app that comes with iOS.

First, call the App Store interface method

In the actual development, often to recommend their own other applications and recommend their own fee software, then we need to connect directly to the App store's corresponding page in the program.

The practical approach is simple, using the OpenURL method of the UIApplication class:

[[UIApplication sharedapplication] Openurl:[nsurl urlwithstring:@ "The corresponding connection of the program]];

Ii. methods for invoking other applications

1) call to bring your own mail?

[[Uiapplicationsharedapplication] openurl:[nsurlurlwithstring:@ "Mailto://[email protected]"];

2) Call telephone phone?

[[UIApplication sharedapplication] openurl:[nsurlurlwithstring:@ "tel://8008808888"];?

3) Call SMS

? [[Uiapplicationsharedapplication] Openurl:[nsurl urlwithstring:@ "sms://800888"];?

4) Call your own browser safari

? [[Uiapplicationsharedapplication] openurl:[nsurlurlwithstring:@ "http://www.hzlzh.com"];

5) Call Remote

? [[Uiapplicationsharedapplication] Openurl:[nsurl urlwithstring:@ "REMOTE://FFF"];

The above is the most basic statement, there is no processing process.

such as: Call phone can pass the number, call SMS can only set the number, cannot initialize the SMS content.

iOS development-application calls between apps (2)

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.