I have seen this question before but without any real answer.
I am using the following code to start a phone call in objective-c.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt:1234567890"]]
This code opens a dialog with the telephone number, an Abort button and a Call button.
Does anyone know how to detect if the Cancel button was pressed?
I need to do some special arrangements in app if Cancel is pressed.
I have tried to use a UIAlertView
combined with the @"tel:1234567890"
command, but that isn't any good. If the "tel:"
command is used, the user will leave the app which isn't what I want...
Thanks!
/Henrik
telprompt
is not an official url scheme. Apple can remove this scheme in future version of iOS. – Arkhangelsk