设置cell背景色和选中色
2024-08-31 19:53:50
// 设置cell的背景色
UIView *bg = [[[UIView alloc] init] autorelease];
bg.backgroundColor = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:];
cell.backgroundView = bg;
// 设置cell选中的背景
UIView *selectdBg = [[[UIView alloc] init] autorelease];
selectdBg.backgroundColor = [UIColor colorWithRed:0.85 green:0.85 blue:0.85 alpha:];
cell.selectedBackgroundView = selectdBg;
最新文章
- 矢量图绘制工具Svg-edit调整画布的大小
- dsoframer 使用笔记
- .Net Enum
- struts2总结二:第一个简单的struts2程序
- arcgis for android 无法加载本地jpg影像解决办法
- hdu 3951(博弈规律)
- # 36氪开放日 • 杭州 • 11月10日 # 谈谈参会感受
- C#_ajax fileupload
- python解决汉诺塔问题
- Linux命令行编辑快捷键
- linux —— ubuntu 初次安装问题
- bui上手体验
- AngularJS自定义表单验证
- spoj 1557 GSS3 - Can you answer these queries III 线段树
- php 自动发送邮件的实现
- 使用 webpack 打包 font 字体的问题
- NOIP 总结
- AndroidStudio加快Gradle速度的方法-android study之旅(103)
- 【bzoj 4407】于神之怒加强版
- Idea下的springboot mysql8.0等报错解决随笔
热门文章
- Python 面向对象 —— super 的使用(Python 2.x vs Python 3.x)
- Android Studio 解决unspecified on project app resolves to an APK archive which is not supported
- javaweb一
- pycharm做什么
- java接口理解(转载)
- 关于cook操作
- 2017国家集训队作业[agc006e]Rotate 3x3
- VMware Vsphere 6.0安装部署 总体部署架构
- BOM 请给javascript一个说法-------Day33
- Flex 正則表達式 电话、邮箱验证