- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
ClassifyMarkCell *Ccell=(ClassifyMarkCell *)[tableViewcellForRowAtIndexPath:indexPath];//获取点中的是哪一个cell
//遍历可见的cell,实现点击文字效果。如果点中的cell和可见的cell是同一个,那么让cell上的文字变为红色,否则文字保持黑色
for (ClassifyMarkCell *cellin tableView.visibleCells) {
if (cell==Ccell) {
cell.title_label.textColor=[UIColorredColor];
}else{
cell.title_label.textColor=[UIColorblackColor];
}
}
}