How to directly make a phone call with private API CTCallDial()?

こ雲淡風輕ζ 提交于 2019-12-09 23:20:32

问题


in Iphone,How to directly make a phone call with private API CTCallDial()? Mainly because I don't know the specific parameters of CTCallDial.


回答1:


1) Link against CoreTelephony.framework

2) Define like

extern "C" id CTCallDial(NSString * number);

and use like:

CTCallDial(@"0123456789");

(returns the CTCallRef created, can be safely casted to id (CTCall *))



来源:https://stackoverflow.com/questions/10207042/how-to-directly-make-a-phone-call-with-private-api-ctcalldial

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