Change Height of a UITableViewCell

后端 未结 5 1440
一整个雨季
一整个雨季 2021-02-13 04:36

I want to make a UITableViewCell bigger. How can I do this, I have tried adjusting its frame but nothing happens. What can I do?

5条回答
  •  不思量自难忘°
    2021-02-13 05:23

    There are 2 steps to change height of a table cell without any additional code:

    1. Select your Table View from your Storyboard. In the Size Inspector change Row Height.
    2. Select your Table View Cell and while it's selected in the Size Inspector change the Row Height.

    Note that you MUST set BOTH of Table View's Row Height attribute and Table View Cell's Row Height attribute.

    If you just set one of them, it won't work.

提交回复
热议问题