如何从我自己的应用程序打开任何iOS应用程序 [英] How to open any iOS App from my own App
问题描述
我想要做的是从我自己的iOS应用程序打开任何iOS应用程序(Evernote,Safari,Safari等)。例如,我使用两个简单的按钮创建了我的应用程序,第一个名为Evernote,第二个名为Safari,所以当我点击印象笔记按钮,我想在我的应用程序启动iOS设备,同样当我点击Safari按钮我想要的按钮打开我的Safari应用程序。我该怎么办?这是可能吗?如果是,请告诉我如何。非常感谢你。
What I want to do is open any iOS Application (Evernote, safari, Facebook, etc) from my own iOS application. For example, I have created my app with two simple buttons, the first one is named "Evernote" and the second one is named "Safari", so when I click on the "Evernote" button I want that the Evernote App launch on my iOS device, the same when I click on the "Safari" button I want that the button opens my Safari App. How can I do that? It is that possible? If it is, please tell me how. Thank you very much.
推荐答案
是的,如果您知道这个应用程式参考网址。
示例调用电话应用程序:
yes it possible if you known this app scheme reference URL. Example call Tel app:
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel://"]]){
NSString *tell = [@"tel://" stringByAppendingString:phoneNumber];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:tell]];
}
Safari和其他方法是一样的。
Safari and other is same way.
列出常见方案网址: http://wiki.akosma.com/IPhone_URL_Schemes
这篇关于如何从我自己的应用程序打开任何iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!