UITableView extra space at bottom

后端 未结 11 581
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 20:15

My tableview has an extra space at the bottom, as you see in the picture:

All the rows in the tableView have a fixed height of 71pt.

11条回答
  •  伪装坚强ぢ
    2020-12-15 20:41

    I had this issue when I flipped my UITableView upside-down for a chat messaging screen.

    Before I flipped the table view, the content inset was leaving a blank space at the top so that when we scrolled all the way up, the content was not obstructed by the navigation bar. Once I flipped it the inset was moved to the bottom.

    Change your 'Content Insets' to Never in the Size Inspector of your UITableView to get rid of this space at the end.

提交回复
热议问题