UIView* tempView=[[UIView alloc] initWithFrame:cell.frame];
tempView.backgroundColor = [UIColor colorWithRed:230.0/255.0 green:247.0/255.0 blue:254.0/255.0 alpha:1.0];
cell.backgroundView = tempView; //更换背景色 不能直接设置backgroundColor
UIView* tempView1=[[UIView alloc] initWithFrame:cell.frame];
tempView1.backgroundColor = [UIColor whiteColor];
cell.selectedBackgroundView = tempView1;
IOS开发之----设置UITableView背景色和选中背景色
原创mb63e0703549da8 博主文章分类:mac/IOS ©著作权
文章标签 移动开发 背景色 文章分类 JavaScript 前端开发
上一篇:ios系统铃声调用方法
下一篇:正则表达式–零宽断言详解

-
WebStrom背景色设置
Ctrl Alt S快速打开setting:
WebStrom背景色设置 -
iOS 数字背景色 iphone背景色
有时候UI给的背景都是一张图,而我们并不想刻意去插入一个UIImageView作为背景,这里就直接可以用一张图来填充背景:
iOS backgroundColor 背景图片 UI