iPhone SDK - opening links in a UITextView in a web view

前端 未结 6 1600
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 18:00

I have specified dataDetectorTypes on a UITextView so that URLs open in Safari when touched.

Is it possible to intercept this behaviour so I load the URL in a UIWebV

6条回答
  •  旧时难觅i
    2021-01-06 18:48

    You would have to do the URL detection yourself and manually load the UIWebView when the URL is tapped.

    Everything needs to be custom-done because Apple sends all http:// and https:// URL openings to Safari.

提交回复
热议问题