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

百般思念 提交于 2019-12-01 06:44:52

问题


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?


回答1:


try this,

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


来源:https://stackoverflow.com/questions/8133318/how-to-open-phone-app-from-within-another-app-without-calling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!