how to obtain the UITableViewCell within heightForRowAtIndexPath?

后端 未结 6 726
孤城傲影
孤城傲影 2020-12-24 12:19

How does one obtain the UITableViewCell when within the heightForRowAtIndexPath method, i.e. given the indexPath?

(then I could access the

6条回答
  •  半阙折子戏
    2020-12-24 13:05

    i would suggest you to calculate the correct height of a row in table:heightForRowAtIndexPath: by using your data structure (Height of text,images,mutliline text etc..).

    And change the component height in their -(void) layoutSubviews method.

提交回复
热议问题