从我的应用程序拨打iphone电话 [英] make a call in iphone from my application

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

问题描述

如何从我的应用程序拨打特别号码。
给我一些执行此任务的逻辑或代码......

how can i make call from my application to particular no. Give me some logic or code for performing this task...

推荐答案

使用UIApplication的 openURL:方法:

Use UIApplication's openURL: method:

[[UIApplication sharedApplication] openURL:
       [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNumber]]];

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

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