Reputation: 991
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
Reputation:
try this,
NSString *stringURL = @"tel:phonenumber";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:stringURL]];
Upvotes: 3