iPhone UITableView分页结果

iPhone UITableView分页结果,iphone,uitableview,pagination,Iphone,Uitableview,Pagination,对从服务器中提取的大量结果进行分页的最佳方法是什么?就服务器而言,我可以抵消和限制结果,因此我一次只能提取25个结果,但让用户查看更多结果而不必像app store应用程序那样不断向下滚动列表的最佳方式是什么 谢谢, Howie要在列表底部添加一个新单元格,单击该单元格将获得下一组单元格,请执行以下操作 在 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 如果还

对从服务器中提取的大量结果进行分页的最佳方法是什么?就服务器而言,我可以抵消和限制结果,因此我一次只能提取25个结果,但让用户查看更多结果而不必像app store应用程序那样不断向下滚动列表的最佳方式是什么

谢谢,
Howie

要在列表底部添加一个新单元格,单击该单元格将获得下一组单元格,请执行以下操作

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
如果还有更多的行要检索,请添加1个额外的行

  return totalCount > [list count]?[list count]+1:[list count]
然后在最后一个单元

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
如果需要,创建“加载更多”单元

[[NSBundle mainBundle] loadNibNamed:@"LoadMoreCell" owner:self options:nil];
LoadMoreCell *cell = loadMoreCell;
NSString *loadMore = [NSString string with Format:@"Load %d more...", numberToLoad];
然后在

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

执行所需操作以使用新金额更新tableview中的项目列表

感谢您的反馈。事实上,我一直在寻找一种替代解决方案,这样tableview就不必不断增长。我很好奇@Ward你是否有什么想法,因为我认为我以前从未在iPhone应用程序中看到过这种用户体验。