Group TableView,using self sizing section header,after reload,if I scroll upward ,tableview will jump

前端 未结 1 1215
攒了一身酷
攒了一身酷 2021-01-23 19:03

I am doing a tableview like this: a twitter and comments on it; enter image description here

I have tried several architecture.I do not find enough question and discussi

相关标签:
1条回答
  • 2021-01-23 19:38

    For this you have to give all constrains left right top bottom to all elements. Also 1-in viewDidLoad set following

    self.yourtableView.estimatedRowHeight= your estimated_height_for_Cell
    yourtableView.rowHeight = UITableViewAutomaticDimension
    

    2-set number of rows to zero For Labels in attribute inspector.

    0 讨论(0)
提交回复
热议问题