我想拨打服务提供商的GSM服务号码,但iPhone不会做出反应。当我尝试使用常规数字进行相同操作时,它将起作用。
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel:#123*1*4#"]
];
有没有人想让电话拨通GSM代码?
最佳答案
无法通过 public 方法使用gsm代码
参见Apples Documentation about Phone Links:
为了防止用户恶意重定向电话或更改电话或帐户的行为,“电话”应用程序支持tel方案中的大多数(但不是全部)特殊字符。 具体来说,如果URL包含*或#字符,则“电话”应用程序不会尝试拨打相应的电话号码。