UIEdgeInsets tableContentInset = self.tableView.contentInset;
tableContentInset.top = 40.0;
tableContentInset.bottom = 30.0;
self.tableView.contentInset = tableContentInset;
这样就可以设置顶部和底部的距离,拖动tableview就不会被挡住了。
UIEdgeInsets tableContentInset = self.tableView.contentInset;
tableContentInset.top = 40.0;
tableContentInset.bottom = 30.0;
self.tableView.contentInset = tableContentInset;
这样就可以设置顶部和底部的距离,拖动tableview就不会被挡住了。