make a call in iphone from my application

2019-01-24 20:45发布

问题:

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]]];


标签: iphone call