How can I find out whether the user pressed the Call or the Cancel button when making a call from my app?
问题 I need to return to my app after making a call from my app, so I use this code: NSURL *url = [NSURL URLWithString:@"telprompt://123-4567-890"]; [[UIApplication sharedApplication] openURL:url]; When the user presses a button to execute this code, an alert is shown with 2 buttons, "Call" and "Cancel". How can I find out if the user pressed the "Call" button? 回答1: This isn't perfect, but you could identify that "call" was pressed instead of "cancel" by listening for the