2011-02-11 167 views
0

我正在使用以下内容:cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
因此它显示“>”为所有细胞,但我想它不应该看到的第一小区,因为它是头线表自定义uitableview单元格?

现在它看起来像 小区1 ---状态000>
2 - -Detail1000>
3 --- Detail200>

但我需要 电池1 ---状态000>
2 --- Detail1000>
3 --- Detail200>
0为空格 总之,我不需要“>”1日在我的表视图细胞,因为它不具有任何一个细节视图
预先感谢您

回答

3

在你的cellForRowAtIndexPath做到这一点:

if (indexPath.row == 0) 
    cell.accessoryType = UITableViewCellAccessoryNone; 
else 
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 
+0

感谢ü这么多的快速回复 – Pooja 2011-02-11 15:33:27

相关问题