Draw underlined / strikethrough text ( MULTILINE STRING )?


Staff member
I have to draw underlined-multiline text with all types of text alignment. I have searched on forums and got some results like:

<a href="http://davidjhinson.wordpress.com/2009/11/26/underline-text-on-the-iphone/" rel="nofollow noreferrer">http://davidjhinson.wordpress.com/2009/11/26/underline-text-on-the-iphone/</a>

<a href="http://forums.macrumors.com/showthread.php?t=561572" rel="nofollow noreferrer">http://forums.macrumors.com/showthread.php?t=561572</a>

But all draw text for single line only. while i have multi-line text. The situation even become worse when the text alignment is centered. I searched and found that in iphone-sdk-3.2 there are some core-text attributes for underlining a text but no idea how to use that. Besides if I use these my problem would not be solved fully.

As I have to draw strikethrough text also.

Anybody having idea about this please help.