Search code examples
iosobjective-ciphoneios5phone-call

How to open Phone App from within another app without calling?


I'm trying to open just the Phone app from within an application I'm making without dialing a number.

I've tried:

NSString *stringURL = @"tel://";

but it does nothing. Anyone have a correct solution. I've seen other questions on this topic but none have worked.

This worked for opening SMS app:

NSString *stringURL = @"sms:";

Just wont work for phone app. Anyone know the solution?


Solution

  • try this,

    NSString *stringURL = @"tel:phonenumber";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:stringURL]];