如何在不打电话的情况下从另一个应用中打开手机应用 [英] 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.
我试过了:
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?
推荐答案
试试这个,
NSString *stringURL = @"tel:phonenumber";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:stringURL]];
这篇关于如何在不打电话的情况下从另一个应用中打开手机应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文