向下滚动时,UITableview 看不到最后一个单元格 [英] UITableview not visible the last cell when scroll down

查看:24
本文介绍了向下滚动时,UITableview 看不到最后一个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 iOS 非常陌生.我有一个填充了许多自定义单元格的 UITableView,但是向下滚动时底部单元格不可见.我的 UITableView 的 Y 值为 44,高度为 480.向下滚动时,只有最后一个单元格的一半可见.我该如何解决这个问题.

提前致谢.

解决方案

使用 -

 tableView.contentInset = UIEdgeInsetsMake(0, 0, 120, 0);//值

<块引用>

传递的是 - 上、左、下、右

根据您的需要传递底部偏移量.

I'm very new to iOS. I have a UITableView that filled with many custom cells, but the bottom cell is is not visible properly when scroll down.my Y value of the UITableView is 44 and Height is 480. Only the half of the last cell is visible when scroll down. How can I fixe this problem.

Thanks in advance.

解决方案

Use -

  tableView.contentInset = UIEdgeInsetsMake(0, 0, 120, 0); //values

passed are - top, left, bottom, right

Pass bottom offset as per your needs.

这篇关于向下滚动时,UITableview 看不到最后一个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆