I have 180 UILabels
(subviews of UITableViewCells
) in an iPad app with a width of 155 X 155 for each UILabel
, and each of them contains a lot of Unicode text (Arabic), when I scroll down the TableView
it hangs for 1 second, and then continues to scroll in normal mode, this happens with every attempt to scroll the user, and this is checked on the iPAD2 device.
however, when I changed the text to English (also a large amount of text in English), the TableView
does not freeze and does not scroll normally.
Has anyone figured out how to solve this problem using text in Unicode?
Thank you so much in advance.
EDIT:
the code here is very large, so, in short, I create each UILabel
using a loop as follows: [[[UILabel alloc] initWithFrame:CGRectZero] autorelease];
in cellForRowAtIndexPath
, then play with the frame later in the same method in accordance with the orientation of the interface, after which I add each UILabel
to the cell as follows: [cell.contentView addSubView:myLabel];
. each cell contains 4 of these "UILabels", so I have a total of 45 cells, no more, direct and simple code.
source share