开发者

Nothing happens when trying to dial a number

I'm trying to programmatically dial开发者_如何学编程 a phone number on iPhone by running this command:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:555-555-5555"]];

But, nothing happens, as if the command never ran.

Any ideas?


I'm not sure the simulator allows you to place a phone call.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜