I have a UITextView that is auto-detecting link URL’s. Instead of opening it in Safari, I want to present my own modal view controller that contains a webview so my users stay in-app.
How can I achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think you can.
Where a UIWebView will tell its delegate when a link is tapped, a UITextView doesn’t provide that kind of info.
You could use a UIWebView instead of a UITextView, but that’s a workaround…