Possible Duplicate:
How to make a call programmatically?
I was wondering if this strip of code will work on iPhone, I can't test it since I only have ipodtouch and simulator.This is all there is to it in code. Also, are there any rules or guidelines that are against this do I need to add a message if it doesn't work? Thanks for any response I may receive.
-(IBAction)callPhone:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:2135554321"]];
}