Tab bar covers UITableView's last cell

后端 未结 12 1875
挽巷
挽巷 2020-12-16 01:18

I\'m developing an application based on the Tab Bar application preset. In one of the tabs I have a table view showing a lot of data, but half the last cell in the table vie

12条回答
  •  春和景丽
    2020-12-16 01:36

    Adding a footer space worked for me:

    //this prevent the tabbar to cover the tableview space
    UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1, 90)];
    footer.backgroundColor = [UIColor clearColor];
    myTableView.tableFooterView = footer;
    

提交回复
热议问题