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

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

问题描述

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

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.

谢谢.

推荐答案

使用-

  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天全站免登陆