开发者

How to obtain the y-coordinate of contentoffset of the end of tableview?

I have added a view at the end of tableview and I needed to check a condition for the cell pull offset for which I wanted obtain the y-coordinate of contentoffset of the end of tablev开发者_如何学Pythoniew. I'm checking for the offeset at the start of tableview like this :

    if (refreshHeaderView.isFlipped && scrollView.contentOffset.y > -65.0f && scrollView.contentOffset.y < 0.0f && !reloading) 

This checks for the condition that the cell is pulled beyond 65 pixels or not.

The same way I wanted to write the condition for the view at the end of tableview wheather the last cell is pulled beyond some 65 pixels or not. How do i check it?

Thanx in advance.


tableView.contentSize


I approached this problem before and my way is to manually calculate the table view height using number of rows in table * table.rowHeight then I can know the total height of the table view. And using that total height + 65

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜