将活动指示符添加到ui表视图单元格

时间:2011-11-07 07:48:58

标签: iphone objective-c ipad

我有一个UITableView,其显示更多(加载更多)"在最后一个单元格中,如果表格视图向上滚动到底部,它会自动从服务器加载数据。和 这有以下代码:

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
    // If last section is about to be shown...
    if ([indexPath row] == [activeResponse.activeArray count] - 1 || [indexPath row] == [activeResponse.activeArray count] - 2)
    {

    NSLog(@"...start fetching more items.");
    [self getActiveRxList:activeResponse.currentPageKey +1 WithWAGIO:serverCommunication];
    }       
}

我想在最后一个单元格中显示活动指示符以及更多加载。任何人都可以帮我怎么做?

0 个答案:

没有答案
相关问题