UITableView extra space at bottom

后端 未结 11 594
被撕碎了的回忆
被撕碎了的回忆 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:40

    The accepted solution is no longer a correct one if it comes to iOS 11 and Xcode 9. To achieve similar effect you have to go to Size Inspector where you can find this:

    You can achieve the same in code:

    if #available(iOS 11.0, *) {
        scrollView.contentInsetAdjustmentBehavior = .never
    } else {
        automaticallyAdjustsScrollViewInsets = false
    }
    

提交回复
热议问题