2010-06-01 49 views

回答

1

是的,你可以在不同的視圖部分有不同的配置。

其實indexPath.row會給你行索引,indexPath.section會給你索引。

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    NSLog(@"You are at row = %d and section = %d",indexPath.row,indexPath.section); 
} 

取決於這兩個索引,你可以指定不同的配置。

Jim。

相關問題