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

查看:135
本文介绍了从另一个(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链接拨打电话,但我想改为启动Phone应用而不拨打任何特定号码。

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方案的应用程序,无论是Apple的,您的还是其他开发者。文档在这里:

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

与其他应用程序通信

至于启动手机,看起来像 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 w/o dialing a number.

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

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