从另一个 (iOS) 打开应用程序 [英] Open an application from another (iOS)

查看:35
本文介绍了从另一个 (iOS) 打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到没有像 NSWorkspace for iOS 的东西

I read that there is nothing like NSWorkspace for iOS

等效于 iOS 的 NSWorkspace

不幸的是,我想在我的应用程序中有一个按钮,可以运行其他一些应用程序(在后台).没有 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆