设置UITableViewCell的选中背景颜色和选中字体颜色的方法

2015-12-10 0 861
设置UITableViewCell的选中背景颜色和选中字体颜色的方法
//设置UITableViewCell的选中背景颜色的方法

    UIView *view = [[UIView alloc]init];
    view.backgroundColor=[UIColor redColor];
    cell.selectedBackgroundView=view;

//设置UITableViewCell的选中字体颜色的方法:

cell.selectedTextColor=[UIColor blackColor];//默认显示为白色

遇见资源网 objective-c 设置UITableViewCell的选中背景颜色和选中字体颜色的方法 http://www.ox520.com/18157.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务