I have a grouped UITableView
. It has 7 rows. I wanted a transparent cell at the 开发者_如何学JAVAend so that I can give a scroll buffer at the end of the tableView. I tried to add a transparent cell at the end of the tableView but as it is grouped tableView the border color appears. I just need empty space at the end of the tableView. Any efficient way of doing it will be helpful.
Why don't you try setting the contentInset
that UITableView
inherits from UIScrollView
?
tableView.contentInset = UIEdgeInsetsMake(0.0, 0.0, 20.0, 0.0);
Positive bottom inset should add the buffer you need. 20.0
might not be a big inset so adjust as you need.
Alternatively, you can also try setting the tableFooterView
property of UITableView
.
精彩评论