Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Cocoa hyperlink

is there a way to display a hyperlink in an iPhone native app. Is this done with a label or another UI object?

Thanks! Joe

like image 525
Atma Avatar asked Mar 31 '09 21:03

Atma


4 Answers

Take a look at Three20 TTStyledText class

like image 159
catlan Avatar answered Nov 11 '22 15:11

catlan


Create a custom UIButton with only text (no background image) and write an IBAction on its click - you have a hyperlink...

like image 43
lostInTransit Avatar answered Nov 11 '22 15:11

lostInTransit


You can embed your text along with hyper link mark ups in a uiwebview object via a static HTML file. Another way is to show the link text on a uibutton and upon click of that button open safari to navigate to the link

like image 1
Raj Avatar answered Nov 11 '22 14:11

Raj


I suggest the following solution: Display the htperlink text as a label and put a detailed disclusure button after it. (Detailed disclosure button is an arrowhead in a circle (>). Set the button title to the url, and make an IBAction that handle the click of the button. In this action you can create a new UIWebView, display it and load the URL into it.

like image 1
silicosaur Avatar answered Nov 11 '22 15:11

silicosaur