Call to a phone number through iPhone App

后端 未结 1 475
Happy的楠姐
Happy的楠姐 2021-01-16 15:27

Hi iPhone developers, I want to add a feature in my iPhone app, they are: call to a phone number in my app after call end, relaunch the previous app. I know its not possibl

相关标签:
1条回答
  • 2021-01-16 16:08

    You can't call a number directly from your app. You can use this snippet to launch the phone app:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12125551212"]];
    

    ... and after the call is done it will return you to your app.

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