开发者

Nothing happens when trying to dial a number

开发者 https://www.devze.com 2023-02-12 00:08 出处:网络
I\'m trying to programmatically dial开发者_如何学编程 a phone number on iPhone by running this command:

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

精彩评论

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