How to directly make a phone call with private API

2019-04-16 08:41发布

问题:

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 *))



标签: jailbreak