UITableViewCell Height Issue

后端 未结 2 642
刺人心
刺人心 2021-01-29 06:09

I\'m actually trying to make the image view height dynamic

I have tried UITableViewAutomaticDimension

in the cell class I have set the image\'s dyna

2条回答
  •  难免孤独
    2021-01-29 06:38

    Well, you can't achieve the dynamic height of cell with UITableViewAutomaticDimension on the basis of image's constraints.

    BUT image's height and width can help you in this. There is a plenty of help regarding this issue is available in following answer:

    Dynamic UIImageView Size Within UITableView

提交回复
热议问题