通过iPhone应用程序拨打电话号码 [英] Call to a phone number through iPhone App

查看:165
本文介绍了通过iPhone应用程序拨打电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨iPhone开发者,我想在我的iPhone应用程序中添加一项功能,它们是:
拨打我的应用程序中的电话号码
,在呼叫结束后,重新启动之前的应用程序。
我知道它在iphone OS 3.2中是不可能的..
在iOS 4中可以吗?
我需要你的帮助......

Hi iPhone developers, I want to add a feature in my iPhone app, they are: call to a phone number in my app after call end, relaunch the previous app. I know its not possible in iphone OS 3.2.. Is it possible in iOS 4? I need your help...

推荐答案

你不能直接拨打电话 从你的应用程序。您可以使用此代码段启动手机应用:

You can't call a number directly from your app. You can use this snippet to launch the phone app:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12125551212"]];

...电话完成后,它会返回你的应用程序。

... and after the call is done it will return you to your app.

这篇关于通过iPhone应用程序拨打电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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