如何从我的应用程序打开ios Native Dialer应用程序 [英] How to open the ios Native dialer app from my App

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

问题描述

我想打开本机拨号器应用程序,并允许用户在其中输入电话号码.我想要这个的原因是因为在我的应用程序中,用户需要使用USSD代码才能进行呼叫,但是使用下面的代码却什么也没发生(什么都没有开始)

I want to open the native dialer app and allow the user to enter the phone number there. The reason why i want this is because in my app the user needs to use USSD codes in order to make calls, but using the code bellow nothing happens (nothing is started)

NSString *phoneNumber = [@"tel://" stringByAppendingString:number]; 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

我在这里(StackOverflow)读到,禁止从您的应用中进行包含*和#的调用. 因此,我想问一下围绕此限制是否有任何解决方法.

I read here (StackOverflow) that making calls from your app that contain * and # are forbidden. So i want to ask is there any work around this limitation.

推荐答案

不,这些符号没有解决方法.

No, there is no workaround with those symbols.

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

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