Iphone emulator url diagram for phone call

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:

// "9312345678"
-(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.

+5
source share
1 answer

btw its tel: // not tel:

But this does not work in the simulator.

, , ( ), . .

+7

All Articles