【发布时间】:2012-03-12 17:41:32
【问题描述】:
我有一个 UITableiew,我希望能够在选择(点击)行时显示自定义复选标记,但是,如果任何其他行上有复选标记,则必须隐藏它。做这个的最好方式是什么? IF... 似乎根本不起作用,它不会像我想象的那样隐藏和取消隐藏复选标记。
提前致谢。 -PaulS。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
home_2_CustomCell *cell = (home_2_CustomCell*)[tableView cellForRowAtIndexPath:indexPath];
//This will hide the selected row...
cell.imageViewDidSelectRow.hidden = YES;
// if (cell.imageViewDidSelectRow.hidden = NO){
// cell.imageViewDidSelectRow.hidden = YES;
// }
}
【问题讨论】:
标签: ios5 uitableview xcode4.2