在 xcode (objective C) 的 PFQuertyTableView 中加载更多单元格

Load More Cell in a PFQuertyTableView in xcode (objective C)

所以我一直在尝试制作像 instagram 这样的应用程序,以了解如何制作社交应用程序 我对编码比较陌生 我一直在尝试将 'Load More' 单元格实现到 PFQueryTableView 中,其中有许多单元格将被上传到其中。 我在底部看到了“加载更多”cel,但我不确定为什么它没有加载下一页

这是我目前得到的:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForNextPageAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"LoadMoreCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    return cell;
}

- (void)tableView:(UITableView *)tableView CellForRowAtIndexPath:(NSIndexPath *)indexPath;
{
    if (indexPath.section == self.objects.count && self.paginationEnabled) {
        [self loadNextPage];
    }

}

有一个可用的库,可让您在向下滚动时加载更多内容并在向上滚动时刷新内容,就像 Instagram 应用程序一样。 使用起来也非常简单。

DragRefreshAndLoadMoreTableDemo

希望对你有所帮助。