开发者

How can use GSM codes for divert calls using objective-c on my iPhone app?

开发者 https://www.devze.com 2023-03-08 09:35 出处:网络
I have already tried to do it using the following code: NSURL *phoneURL = [[NSURL alloc] initWithString:@\"tel:**21*<destination_number>#\"];

I have already tried to do it using the following code:

NSURL *phoneURL = [[NSURL alloc] initWithString:@"tel:**21*<destination_number>#"];
[[UIApplication sharedApplication] openURL:phoneURL];

but it doesn't work and sometimes the a开发者_C百科pp crashs.

It works for me using a normal number (like 19765432221)...

Anybody?

Thanks!


I'm not sure what *21# means, but if it doesn't work the way you're doing it, it's most certainly because Apple doesn't allow it. There's no other (public) API method for doing this kind of thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消