我想让我的手机加载并反向使用它的数据。基本上,我希望最后一个单元格是第一个。
发布于 2010-05-11 10:26:08
你的意思是你想要从轨道到头部显示你的数据?也许您应该在表的数据源方法中执行此操作:
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
...
NSUInteger row = [indexPath row];
NSUInteger count = [listData count]; // here listData is your data source
cell.textLabel.text = [listData objectAtIndex:(count-row-1)];
return cell;
}
https://stackoverflow.com/questions/2807664
复制相似问题