UITableView is under the TabBar

前端 未结 7 2034
花落未央
花落未央 2021-01-24 20:57

I have a custom UITableView with custom cells (70px height for each cell).

I have also a 49px UITabBar, but it\'s hides the tableView.

7条回答
  •  借酒劲吻你
    2021-01-24 21:26

    Try this

    self.commentsTableView.contentInset = UIEdgeInsetsMake(49, 0, 0, 0)
    self.commentsTableView.setContentOffset(CGPoint.init(x: 0, y: -49), animated: false)
    

提交回复
热议问题