问题描述
覆盖(组样式)表视图的页眉/页脚时,页眉和页脚字体应使用什么颜色,以确保页眉和页脚字体与标准页眉和页脚字体一致?
When overriding the header/footer of a (group styled) table view, what colour should be used for the header and footer fonts to ensure the header and footer fonts are consistent with the standard header and footer fonts?
标题正在加载,如下所示:
ie The header is being loaded like this:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
if(myHeaderView == nil) {
[[NSBundle mainBundle] loadNibNamed: @"MyHeaderView"
owner: self
options: nil];
}
return myHeaderView;
}
推荐答案
http://www.iphonedevsdk.com/forum/iphone-sdk-development/1199-default-tableview-section-header-background-color.html =nofollow>讨论
From this discussion
这是 iOS 6 上的tableView标头的 UILabel
信息:
Here's the UILabel
info for tableView headers on iOS 6:
Plain
fontName: Helvetica-Bold
pointSize: 18.000000
textColor: UIDeviceWhiteColorSpace 1 1
shadowColor: UIDeviceWhiteColorSpace 0 0.44
shadowOffset: CGSize 0 1
Grouped
fontName: Helvetica-Bold
pointSize: 17.000000
textColor: UIDeviceRGBColorSpace 0.298039 0.337255 0.423529 1
shadowColor: UIDeviceWhiteColorSpace 1 1
shadowOffset: CGSize 0 1
背景的平面样式头,这是一个UIImage,而不是简单的backgroundColor。注意微妙的垂直渐层。
As for the background of the plain style header, that's a UIImage, not simply a backgroundColor. Notice the subtle vertical gradient.
希望有助于
这篇关于UITableView头/页脚字体颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!