Create NSURL but only show link text

I am using UIActivityViewController to share screenshot in my application. In my opinion we can have a textbox, image and url. What I would like to do is one of the words in my textbox, which is a clickable url. Something like,

"Check my high score in myGameName !" where myGameName is the link to my game site. Basically what I am going is the same as the html link

<a href="url">Link text</a>

      

where the "Link Text" is actually displayed. Is there a way to do this?

+3


source to share


3 answers


No, textbox / image / url are all separate items because some services don't support them "natively".



+1


source


check this library to assign a shortcut https://github.com/mattt/TTTAttributedLabel



+1


source


I think you can take a look at the OHAttributedLabel

0


source







All Articles