开发者

Add a transparent UITableViewCell at the end of the Groupedtableview with no bordercolor

开发者 https://www.devze.com 2023-03-15 19:54 出处:网络
I have a grouped UITableView. It has 7 rows. I wanteda 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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消