UITableViewCell的个常用操作
1、Cell点击事件代理方法- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
}
2、Cell点击后恢复原状
在Cell点击事件中调用方法
;
3、选中时系统默认颜色设置
cell.selectionStyle = UITableViewCellSelectionStyleNone; // 无色
cell.selectionStyle = UITableViewCellSelectionStyleBlue; // 蓝色
cell.selectionStyle = UITableViewCellSelectionStyleGray; // 灰色
页:
[1]