Quote:
Originally Posted by racharambola5
Hi,
I have a text label with the text set as Contact Us.. When user taps on this label it should launch safari to open the web page.My doubt is how to make Contact Us as hyperlink.Please help me guys..I am in final stages of my project..If possible please help me with sample code..thanks for all your time
|
iOS does not support rich text (RTF) like MacOS does. The only UI object that supports clickable text links directly is UIWebView. That's an awfully heavy-weight solution to your problem however.
The other posters have the right idea. Overlay a button on your text, and have the buttons's action trigger an openURL call to launch Safari.