如何修改UITableView中SectionTitle的背景色
2012-04-18 07:43
597 查看
UITableViewDelegate中有
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 30)] autorelease];
headerView.backgroundColor = applicationDelegate._app.theme.titleBlockBgColor;
return headerView;
}
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 30)] autorelease];
headerView.backgroundColor = applicationDelegate._app.theme.titleBlockBgColor;
return headerView;
}
相关文章推荐
- [iOS UItableView 自定义Section] 自定义Section 修改title样式
- 修改UITableView section header title的样式
- iOS UITableView中关于cell里的按钮被点击时如何确定是哪一个section
- UITableView 如何修改数据
- UITableView group属性中 改变section之间的间距 和改变group的背景色
- ios 修改UITableView的section之间的距离
- iOS UITableView中关于cell里的按钮被点击时如何确定是哪一个section
- ios7下group※UITableView头部section高度修改方案
- 修改UITableViewStyleGrouped形式的tableview的背景色
- iphone uitableview 设置分区标题(section title)
- uitableview中的cellforrow方法里 修改button title
- 修改UITableViewStyleGrouped形式的tableview的背景色
- 自定义UITableView的Section 的 title 的字体 和颜色
- iOS UITableView中关于cell里的按钮被点击时如何确定是哪一个section
- 自定义UITableView的Section的title的样式
- 如何修改一次代码就可以完成多种类型 cell 的 UITableView 增删修改顺序?
- 自定义Section:修改UITableView的Section的背景和字体
- 修改UITableView titleForHeader 的风格样式
- 如何禁止UITableView的section停留(去除卡住的效果)
- 修改UITableViewStyleGrouped形式的tableview的背景色 此博文包含图片 (2013-09-10 11:11:57)转载▼ 分类: IOS笔记 在使用UITable