-1

My property has a string value of a website URL. Is there a way to make it hyperlinked so a user can tap it and launch the website?

PartnersDetail *hsName = [PartnersDetail alloc]init];
hsName.partnersURL = @"www.websitehere.com";
Matt S.
  • 13,305
  • 15
  • 73
  • 129
stevenpepe
  • 267
  • 4
  • 16

2 Answers2

0

Try with -

  1. Fancy Label
  2. TTTAttributedLabel
  3. three20 project
thatzprem
  • 4,697
  • 1
  • 33
  • 41
0

Similar question is answered here: How to make UITextView detect links for website, mail and phone number

You need to set the detector types on the UITextView or whatever view you're using to render the text.

But to answer your question - string value itself cannot be 'hyperlinked'. Only the particular rendering of that text and that's it is the renderer's responsibility to add this functionality (in iOS it is UITextView etc.)

Community
  • 1
  • 1
czechboy
  • 899
  • 7
  • 15