UITableView传感器反向
答
你的意思是你想显示你的数据从头到尾? 也许你应该使用你的表的数据源方法执行它:
- (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;
}
我认为它应该是(count-1-row)。 – DyingCactus 2010-05-11 02:39:28
嗨,你说得对。 :) 我的错。我会更新它。 – 2010-05-11 02:41:20
这将访问数据中的相反数字? – Jaba 2010-05-11 03:03:28