1

I am opening a dialog asking the user to call somewhere with this code :

-(void)callPhone:(NSString *)phone{
    NSURL *phoneURL = [NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@",phone]];
    [[UIApplication sharedApplication]openURL:phoneURL];
}

all is nice and great;

however, this dialog appears over a tableview, and i want, when the user begins scrolling the tableview behind the dialog, to automatically dismiss this dialog.

How ?

Lena Bru
  • 13,521
  • 11
  • 61
  • 126

1 Answers1

2

As far as I know you can't as [[UIApplication sharedApplication]openURL:phoneURL]; ends up asking the OS to handle the URL.

Rich
  • 8,108
  • 5
  • 46
  • 59