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模拟器上运行它; 导致它不提示拨打电话?
谢谢!跳蚤