make a call in iphone from my application

南楼画角 提交于 2019-12-29 06:30:51

问题


how can i make call from my application to particular no. Give me some logic or code for performing this task...


回答1:


Use UIApplication's openURL: method:

[[UIApplication sharedApplication] openURL:
       [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNumber]]];


来源:https://stackoverflow.com/questions/3385901/make-a-call-in-iphone-from-my-application

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