I across the following code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8005551212"]];
on : Making phone calls on iPhone
But, it does not work for me in the simulator. I have connected the IBAction(callphone) to the ViewController(TouchUpInside). I am now not sure, is it because I am checking my code in simulator? I do not get a dialog box. Please advice.
I tried putting log statements and the action does get called since the log stamtments that I wrote to test is being printed