博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cellForRowAtIndexPath UITableViewCell 选中后的背景颜色设置
阅读量:7003 次
发布时间:2019-06-27

本文共 459 字,大约阅读时间需要 1 分钟。

- (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;}

转载地址:http://pdutl.baihongyu.com/

你可能感兴趣的文章