从另一个 (iPhone) 中启动应用程序 [英] Launch an app from within another (iPhone)

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

问题描述

是否可以从另一个应用程序中启动任意 iPhone 应用程序?例如 在我的应用程序中,如果我希望用户按下按钮并直接启动到电话应用程序(关闭当前应用,打开电话应用).

Is it possible to launch any arbitrary iPhone application from within another app?, For example in my application if I want the user to push a button and launch right into the Phone app (close the current app, open the Phone app).

这可能吗?我知道这可以通过 tel URL 链接拨打电话来完成,但我只想让电话应用程序启动而不拨打任何特定号码.

would this be possible? I know this can be done for making phone calls with the tel URL link, but I want to instead just have the Phone app launch without dialing any specific number.

推荐答案

正如 Kevin 所指出的,URL Schemes 是应用程序之间进行通信的唯一方式.所以,不,不可能启动任意应用程序.

As Kevin points out, URL Schemes are the only way to communicate between apps. So, no, it's not possible to launch arbitrary apps.

但是可以启动任何注册 URL Scheme 的应用程序,无论是 Apple 的、您的还是其他开发者的.文档在这里:

But it is possible to launch any app that registers a URL Scheme, whether it's Apple's, yours, or another developer's. The docs are here:

为您的应用定义自定义 URL 方案

至于启动手机,看起来您的 tel: 链接需要至少三位数字才能启动手机.所以你不能不拨号码就直接进入应用程序.

As for launching the phone, looks like your tel: link needs to have least three digits before the phone will launch. So you can't just drop into the app without dialing a number.

这篇关于从另一个 (iPhone) 中启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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