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