UITableView is under the TabBar

前端 未结 7 2223
花落未央
花落未央 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:31

    You should config the corresponding view controller with following code to remove the edges extend (It defaults to UIRectEdgeAll)

    edgesForExtendedLayout = []
    

提交回复
热议问题