Top margin on UITableViewController

前端 未结 3 2066
春和景丽
春和景丽 2021-01-31 15:12

I have a TabBarController, one of the tabs of which contains a sub view which is a navigationController. I am then loading into the navigation controller a view which inherits f

3条回答
  •  清歌不尽
    2021-01-31 15:56

    Fix it programmatically:

       - (void)viewDidLoad {
           UIEdgeInsets inset = UIEdgeInsetsMake(20, 0, 0, 0);
           self.tableView.contentInset = inset;
       }
    

提交回复
热议问题