IOS-UITableView手动添加时,Header Section的背景设置
2013-10-10 11:12
691 查看
方法如下: -(UIView*) tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section { UIView*headerView =[[[UIView alloc] initWithFrame:CGRectMake(0,0, tableView.bounds.size.width,30)] autorelease]; if(section == integerRepresentingYourSectionOfInterest) [headerView setBackgroundColor:[UIColor redColor]]; else [headerView setBackgroundColor:[UIColor clearColor]]; return headerView; }
相关文章推荐
- IOS-UITableView手动添加时,Header Section的背景设置
- ios开发-设置UITableView/Cell背景设置
- iOS 7 UITableview 在Plain模式下 设置背景颜色无效
- iOS之设置tableView背景图片/让UITableView自动滑动(定位)到某一行cell
- IOS_设置UITableView Section的背景颜色和字体颜色(自定义section布局)
- ios 设置UITableView 选中行cell的背景颜色(自定义选中的背景颜色)
- 给iOS SDK中的表格控件(UITableView)添加背景图
- IOS-UITableView设置背景图片,方式与众不同。
- iOS设置UITableView的背景图片,以及不显示多余的空Cell
- iOS利用UITableView设置全屏分隔线的3种方法总结
- iOS UITableView设置表头和表脚
- [iOS]swift之UITableView添加通过xib创建的headerView坑爹问题
- 【iOS-Cocos2d游戏开发之七】在cocos2d中添加/删除系统组件,并解决View设置透明会影响View中的其他组件的问题!【11月28日更新解决添加组件Cocos2d动画停止播放的BUG】
- iOS UITableView设置Section间距
- iOS下uiview和uiscrollview设置背景图片的源码
- iOS开发之UITableView添加数据源的两种方式
- UITableView 设置背景图片
- 去除UITableView的边框线,背景,边框线设置
- 关于设置UITableView的背景图片
- ios开发-设置view背景