cell选中的背景颜色

UITableViewCell* cell=[tableView cellForRowAtIndexPath:indexPath];
cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor=[UIColor colorWithHex:0xf7f2f2];

你可能感兴趣的:(cell选中的背景颜色)