IPhone. Can you show the dialer interface from your application?

If I have a phone number somewhere in my application and I want to give the user the opportunity to dial it, can I call the telephone interface with a phone number that is automatically entered in the dialing field and only click β€œGreen” on the phone so that the phone can dial?

How do I achieve this?

Is there any API I should look for?

+3
source share
2 answers

No.

If you specify a phone number in your application, you can do it as a URL, for example tel: // 1234567890. You can use the method UIApplication openURL:to open it.

URL tel://, , . , , "" .

, . , - .

+1

telprompt tel, , , , , :

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

Source: https://habr.com/ru/post/1776198/


All Articles