In swift, I have a textView with several phone numbers.
When you select the phone number, an action sheet appears that asks the user if they want to call, or cancel.
If the user decides to make the call, how can I tell that the user made the call?
I can intercept the click by using:
func textView(textView: UITextView, shouldInteractWithURL URL: NSURL, inRange characterRange: NSRange) -> Bool {
label.text = "\(URL)"
return true
}
However, this is called the second I touch the link. iOS by default opens a prompt that then asks the user whether or not he/she wants to Call or Cancel
I only want to know if they made a call.
How can i do this?
Also disabling the prompt and calling immediately would also work