I’m trying to find a simple way to include a hyperlink within the text of a label in my iOS app. The goal is to have the user tap the URL and the app will open a Safari browser with that URL.
I’ve read about including a button with the URL as the label, but that’s not going to work for my application.
Is there a simple way to do this?
Thanks so much
You can achieve this by using
NSArrtibutedStrings— but I would recommend to use some wrapper around this C-functions. I likeOHAttributedLabel.The demo included shows exactly, how hyperlinks can be handled.