PFQueryTableViewControllerで最下部までスクロールすると
「Load More...」というセルができて、それをタップすると
「続きを読む」処理が実行される。
どうせなら自動で続きを読み込んで欲しいので
最下部までスクロールした場合に続きのコンテンツを読み込む処理を行う。
- (PFTableViewCell *)tableView:(UITableView *)tableView cellForNextPageAtIndexPath:(NSIndexPath *)indexPath;
{
[self loadNextPage];
static NSString *cellIdentifier = @"Cell";
PFTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if (!cell) {
cell = [[PFTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:cellIdentifier];
}
return cell;
}