I have implemented a call functionality on button click. After that a popup appears with number as title and with options - cancel and Call. I want to show another controller with a message - call not placed if that cancel is clicked. Please help me to achieve this. Thanks in advance.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:8750509040"] options:@{} completionHandler:^(BOOL success) {
if (success) {
NSLog(@"Success");
}
else{
NSLog(@"Failed");
}
}];