Table View Cell Row Height doesnt work

前端 未结 8 1061
故里飘歌
故里飘歌 2021-02-05 03:39

I have tried to hard code the row height in the table view cell. After running the program it looks like only one line. I suspect it is because of the height of the row

8条回答
  •  庸人自扰
    2021-02-05 03:53

    If you want the cells to occupy space according to its content, you need to return UITableViewAutomaticDimension in the table view delegate methods heightForRowAt: and estimatedHeightForRowAt:

提交回复
热议问题