IOS development -- call between applications (2), ios development

Source: Internet
Author: User

IOS development -- call between applications (2), ios development

In the previous article, I explained how to call an app between my own applications. Today I will introduce how to call an app that comes with IOS.

1. Call the app store Interface

In actual development, we often recommend other applications and recommend our own paid software, so we need to directly connect to the corresponding page of the app store in the program.

 

The actual method is very simple. The OpenURL method of the UIApplication class is used:

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ "program connection"];

 

2. Call methods of other applications

1) Call the built-in mail handler

[[UIApplicationsharedApplication] openURL: [NSURLURLWithString: @ "mailto: // admin@hzlzh.com"];

2) call phone numbers

[[UIApplication sharedApplication] openURL: [NSURLURLWithString: @ "tel: // 8008808888"]; then

 

3) Call SMS

Parameters [[UIApplicationsharedApplication] openURL: [NSURL URLWithString: @ "sms: // 800888"]; then

4) Call the self-contained browser safari

Parameters [[UIApplicationsharedApplication] openURL: [NSURLURLWithString: @ "http://www.hzlzh.com"];

 

5) Call Remote

Parameters [[UIApplicationsharedApplication] openURL: [NSURL URLWithString: @ "remote: // fff"];

 

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

For example, if you call phone, you can pass the number. If you call SMS, you can only set the number and Cannot initialize the SMS content.


Ios development, simple method call

Try [StretchableSprite spriteWithFile: @ "1.jpg" size: CGSizeMake (185,100) leftCap: 100 topCap: 100];
There are two error points:
(1) The string is represented as @ "string", and no escape character is required.
(2) The second parameter in the function requires CGSize. You pass the CGRect parameter, and the size parameter is the struct of the two parameters, which are width and height. The rect contains a CGPoint and a CGSize.

What is the relationship between the SDK and Xcode in ios development? Which of the following experts can help you answer this question?

Maybe you are not familiar with ios development,
The relationship between the operating system and the software is the relationship between the operating system and the software. The operating system provides a platform for the application. You can use the software to implement the software functions. Xcode provides a platform for the SDK. You can use the SDK for programming.
XCode is just an IDE tool for development. You can also use XCode for development.
The SDK is an API and a class and method used in your programming project. It is developed by Apple and you can call it.
[Source: Shanghai ITCH training]

Related Article

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.