views:

233

answers:

1

Hi,

I am new to iphone development. I have created grouped table and display the contents in the cell. Now i want to display underlined the text in the cell (similar hyperlink) based on my requirements. How can i achieve this. I did some research but i cant get any idea, please help me out.

Thanks.

+1  A: 

There is no simple way to underline text in iPhone OS 3.1 and earlier. You'll need to query the UILabel displaying your text to determine its position and draw the underline yourself.

If you are targeting only the iPad (iPhone OS 3.2 and later), then you can make use of Core Text and NSAttributedString.

Steve Madsen