Ttstyledtextlabel does not draw properly when text property is assigned multiple times

Posted by user210504 on Stack Overflow See other posts from Stack Overflow or by user210504
Published on 2011-01-04T10:33:21Z Indexed on 2011/01/04 16:54 UTC
Read the original article Hit count: 194

Filed under:
|

I have A ttstyledtextlabel in my uitableview cell. It has got some web URLs for images which are being rendered. But since images take some time to download i reload the cell after sometime to render the images if they have been downloaded.

The problem I am facing is that during subsequent assignment of text if the size of the label changes, happens when images have been successfully loaded the label does not render properly but rather blanks out. But I see the proper label when is scroll and come back to the cell again.

Anyone faced this issue

or simply when the following line is executed multiple times, the Styled Label goes blank

StyledView.text = [TTStyledText textFromXHTML:[self getStyledText] lineBreaks:YES URLs:YES];

© Stack Overflow or respective owner

Related posts about iphone

Related posts about three20