I want to call a开发者_C百科 GSM-Servicenumber of my provider, but the iPhone won't give a reaction. When I try the same with a regular number it works.
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel:#123*1*4#"]
];
Have anyone an idea to get the Phone dial the GSM-Code?
it is not possible to use gsm-codes with public methods
See Apples Documentation about Phone Links:
To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number.
Replace *
with %2A
and #
with %23
.
Your example would be:
[NSURL URLWithString:@"tel:%23123%2A1%2A4%23"]
精彩评论