UITableView is under the TabBar

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

    i don't know what you did exactly, but try like this:

    self.edgesForExtendedLayout = UIRectEdgeAll;
    self.tableview.contentInset = UIEdgeInsetsMake(0.0f, 0.0f, CGRectGetHeight(self.tabBarController.tabBar.frame), 0.0f);
    

    I hope, this will work.

提交回复
热议问题