我正在使用带有滚动列表的UItableview。现在,我有默认的“加载更多”按钮,一次可加载10个对象。它破坏了接口。关于如何自定义它的任何想法?一个尝试了几件事,但我们没有运气。谢谢
最佳答案
尝试实现Parse提供的用于自定义“加载更多”单元格的此方法:
// Override to customize the look of the cell that allows the user to load the next page of objects.
// The default implementation is a UITableViewCellStyleDefault cell with simple labels.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForNextPageAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"NextPage";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.textLabel.text = @"Load more...";
return cell;
}
关于ios - 行列表中的自定义iOS“加载更多”按钮,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25675937/