I am new to iPhone dev. I could solve most of my stackoverflow / apple doc reading issue, but now I'm kinda stuck.
I am trying to make a phone call from a phone number.
From the document and the example I found, I did this:
-(void) doCall:(NSString*) phoneNumber{
DsLog(phoneNumber);
NSString * s = [NSString stringWithFormat:@"tel:%@",phoneNumber];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:s]];
}
It does nothing! (without exception, without dialgo, without a phone call)
Did I do something wrong? Is it because it is an emulator?
any help is appreciated
Loda
PS: I have something similar to open a browser and it works fine; Log display in debugger console with valide phone number.
source
share