【发布时间】:2013-02-18 08:17:32
【问题描述】:
我已经实现了以下代码,以更改 tableView 中节标题的 tint。我只想更改颜色,而不是应用我自己的视图。但是,该应用程序似乎忽略了它,并且部分标题继续以默认灰色显示。关于我可能做错了什么的任何线索?非常感谢!
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
[[tableView headerViewForSection:section] setTintColor:[UIColor brownColor]];
return [tableView headerViewForSection:section];
}
【问题讨论】:
-
请用谷歌搜索...当然你会得到答案@Álvaro Morales Navarro
-
看到这个stackoverflow.com/questions/813068/…@Álvaro Morales Navarro
-
谢谢巴布尔,我确实用谷歌搜索了好几天。解决方案不使用 setTintColor 方法,所以这不是我要找的。无论如何感谢您的帮助。 :-)
-
再次感谢!我终于在stackoverflow.com/questions/3294876/… 中找到了我想要的东西
标签: xcode uitableview header tint