打开另一个应用程序(IOS) [英] Open an application from another (iOS)
问题描述
我读到有没有像NSWorkspace于iOS
I read that there is nothing like NSWorkspace for iOS
<一个href=\"http://stackoverflow.com/questions/3518223/equivalent-of-nsworkspace-sharedworkspace-runningapplications-for-iphone-i\">Equivalent NSWorkspace适用于iOS 的
不幸的是,我想在我的应用程序一个按钮,可以运行一些其它应用(背景)。是否有可能不NSWorkspace?
Unfortunately, I wanted a button in my app that can run some others applications (in background). Is it possible without NSWorkspace ?
推荐答案
您第一个问题是,你不能以同样的方式在后台运行的应用程序,你可以在Mac上。
Your first problem is that you can't run applications in the background in the same way that you can on the Mac.
但是,假设只启动一个程序就够了,答案是:这取决于。其他应用程序将需要定义的URL方案。不是所有的事,很遗憾。然后,你只需要调用 [UIApplication的的OpenURL:]
But, assuming that just launching an app is enough, the answer is: it depends. The other app would need a URL scheme defined. Not all do, unfortunately. Then you just call [UIApplication openURL:]
.
这篇关于打开另一个应用程序(IOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!