需要有关iPhone应用程序中的openURL:[NSURL URLWithString:@"tel:+91(number)"]的帮助 [英] Need help with openURL:[NSURL URLWithString:@"tel:+91 (number)"]] from an iPhone app

查看:52
本文介绍了需要有关iPhone应用程序中的openURL:[NSURL URLWithString:@"tel:+91(number)"]的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要拨打+91(电话号码),但是如果我使用tel://网址,则无法通过iPhone应用程序拨打电话.如何呼叫任何格式的电话号码.

I need to call a number +91 (number),but if i use tel:// url it does not make a call from a iphone app. How to call a number coming in any format.

推荐答案

iphone将使用下面列出的任何一种格式拨打电话号码.

The iphone will dial a number using either of the formats listed below.

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

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

[[UIApplication sharedApplication] 
                    openURL:[NSURL URLWithString:@"tel:1-541-555-1234"]];

有关tel上Apple文档的链接:URL方案

这篇关于需要有关iPhone应用程序中的openURL:[NSURL URLWithString:@"tel:+91(number)"]的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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