cellForRowAtIndexPath UITableViewCell 选中后的背景颜色设置

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
     UITableViewCell *cell = [[UITableViewCell alloc]initWithFrame:CGRectMake(0, 0, 320, 30)];
   cell.resultTableContent.highlightedTextColor = [UIColor blackColor];   //选中后的 颜色设置
            cell.resultBackgroudImg.highlightedImage = [UIImage imageNamed:@"mainbtnbg1.png"];   //选中后的 背景图片设置

//不可选
    cell2.selectionStyle = UITableViewCellSelectionStyleNone;
}
原文地址:https://www.cnblogs.com/qingjoin/p/2721428.html