Core Text in UITableviewCell's content overlapping and repeating and superimpose on the other cells

后端 未结 2 1058
天命终不由人
天命终不由人 2021-01-16 19:23

I am using Core Text to add text to UITableviewCell\'s content but arabic content seems to be overlapping and repeating itself as I scroll and superimpose on the other cells

2条回答
  •  离开以前
    2021-01-16 20:10

    Actually fixed the issue myself by adding the following line in cellforRowAtIndexPath:

     if (cell == nil)
                {
    
                    cell = [[QuranVersesViewCell alloc] init];
                  .....
    

    and also did all the initialization and setting only when the cell was nil. And MOST importantly tagged the view layer and set the text for only the matching tagged view...

提交回复
热议问题