开发者

Make an autocall programmatically in iOS

Is it possible to do a call to a predefi开发者_如何学Gonite number in iphone sdk with some system api?


You can do this as follows, but the user will need to accept the call placement.

NSURL *telephoneURL = [NSURL URLWithString:@"tel:01234567890"];
[[UIApplication sharedApplication] openURL:telephoneURL];

If you're attempting to place a call without the user's acknowledgement, then this (thankfully) isn't possible using the public API.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜