Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

confirm user wants to call a phone number after click

Tags:

ios

iphone

I want to show a pop up that asks if the user wants to call the number when the user clicks on a number.

How do I do that? Currently, when I click on the number, it calls it automatically.

like image 884
SuperString Avatar asked Dec 05 '22 22:12

SuperString


1 Answers

You can also do:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt:0123456789"]];

to get the prompt and return to your app afterwards.

like image 108
Ricky Helgesson Avatar answered Jan 26 '23 01:01

Ricky Helgesson