在不使用'numberOfRowsInSection'委托方法iphone sdk的情况下到达表视图的末尾 [英] Reach the end of the tableview without using 'numberOfRowsInSection' delegate method iphone sdk

查看:49
本文介绍了在不使用'numberOfRowsInSection'委托方法iphone sdk的情况下到达表视图的末尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在tableview的最后一个单元格之后添加一个视图。我需要为其定义框架。如果要在第一个单元格之前添加内容,则可以将框架设置为

  refreshHeaderView = [[[EGORefreshTableHeaderView alloc] initWithFrame :CGRectMake(0.0f,0.0f-self.view.bounds.size.height,320.0f,self.view.bounds.size.height)]; 

但是如何找到要在最后一个单元格之后设置的视场的y坐标。 / p>

预先感谢。

解决方案

tableview继承了scrollView的子类,因此,要回答您的问题,可以使用contentSize,但是可以使用footerView来实现所需的内容吗?


I want to add a view after the last cell of tableview. I need to define the frame for it. If I want to add something before the first cell, then I can set the frame as

refreshHeaderView = [[EGORefreshTableHeaderView alloc] initWithFrame:CGRectMake(0.0f, 0.0f - self.view.bounds.size.height,320.0f, self.view.bounds.size.height)];

But how to find the y coordinate of the frame of view to be set after the last cell.

Thanx in advance.

解决方案

The tableview subclasses scrollView, so, to answer your question, you can use contentSize, however, can you use the footerView to achieve what you want anyway ?

这篇关于在不使用'numberOfRowsInSection'委托方法iphone sdk的情况下到达表视图的末尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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