i want to make an application which makes phone calls.i am new in this field.Please give some guide lines.
A:
use
[[UIApplication application] openURL:[NSURL URLWithString:@"tel://8005551212"]];
It will only work in iphone... not in simulator...
mihirpmehta
2010-03-29 06:04:19
A:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://5558675309"]]
Noah Witherspoon
2010-03-29 06:04:38
+1
A:
The URL scheme format (according to the Apple URL Scheme Reference) is tel: NOT tel://. While the latter works now, it is not consistent with Apple's documentation and may not work in the future. Aside from that detail, Noah's and mihirpmehta's suggestions are the correct way to initiate a phone call from within your app. Keep in mind though, that your app will quit when the phone app is launched so you may want to save state before opening the URL.
glorifiedHacker
2010-03-29 06:39:30