开发者

using tel: url to initiate call - but need to insert SPECIAL CHARACTER # [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?

I need to initiate a call which also enters an id separated by #

The problem is that as soon as I insert this special character the method does not fire (as开发者_JS百科 explained in the doc, I know)

Also stringByAddingPercentEscapesUsingEncoding does not change anything.

Is there a workaround? Can I send /simulate key strokes ?

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345#2"]]; <- because of the # it does not fire.

Thanks very much....


CTCallDialWithID(@"12345#2", -1);

and link with CoreTelephony.


I think it's not possible. And in another forum someone asked Apple about that, but never get an answer back


According to RFC2806 you've got a 'post-dial' part that seemingly let's you do what you want. Try:

tel:12345;postd=#2
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜