How to make a phone call through programming

前端 未结 3 1674
终归单人心
终归单人心 2021-01-03 06:40

How to make a phone call through programming in iOS?

相关标签:
3条回答
  • 2021-01-03 06:53

    You can use:

    tel:1-408-555-5555

    More at https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html

    0 讨论(0)
  • 2021-01-03 06:59

    Use UIApplication:openURL method to open a resource from other program. This includes opening mail, phone number, google maps search etc..

    So, in order for you to call somebody using the method, you can use

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:123456789"]];
    
    0 讨论(0)
  • 2021-01-03 07:13

    I think you can use the tel:// URL to specify a phone number just like you would specify a web-page with http://

    This makes it easy to transition from a web interface to a phone style voice interface. The format also theoretically supports alternative SIP providers and extensions.

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