CokePokes
CokePokes

Reputation: 991

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?

Upvotes: 4

Views: 3756

Answers (1)

user907729
user907729

Reputation:

try this,

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

Upvotes: 3

Related Questions