UIButton不会拨打电话

Fle*_*lea 3 iphone objective-c

看起来这应该很简单,但无论出于何种原因,当我按下UIButton时,我无法通过电话功能提示.

-(IBAction)viewMapButton:(id) sender
{
    NSString *phoneNumber = [[NSString alloc] initWithString:@"tel:1234567890"];

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

    NSLog(@"Call");
}
Run Code Online (Sandbox Code Playgroud)

我的NSLog被成功调用.我正在iOS模拟器上运行它; 导致它不提示拨打电话?

谢谢!跳蚤

Ric*_*III 7

iOS模拟器没有手机(就像iPod Touch一样),因此在调用telURL方案时不会发生任何事情.