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)