简体   繁体   中英

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?

try this,

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM