views:

2287

answers:

5

Hi, 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

+1  A: 

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

Raj
A: 

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.

silicosaur
+3  A: 

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

lostInTransit
+5  A: 

Take a look at Three20 TTStyledText class

catlan
A: 

I new to Iphone xcode and am just starting with xcode3. I cant seem to adjust the action on an UIButton. I am merely trying to create a button that opens safari to a specific url. I started with the basic template provided, but can seem to find the file to adjust the target of the button. Right now the button does nothing. Any help would be great