make a call in iphone from my application

前端 未结 1 1056
闹比i
闹比i 2020-12-17 06:10

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

1条回答
  •  不知归路
    2020-12-17 06:39

    Use UIApplication's openURL: method:

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

    0 讨论(0)
提交回复
热议问题