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