UITableView header/footer font color

后端 未结 2 1681
走了就别回头了
走了就别回头了 2020-12-23 17:46

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 consis

2条回答
  •  無奈伤痛
    2020-12-23 18:19

    From this discussion

    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
    

    As for the background of the plain style header, that's a UIImage, not simply a backgroundColor. Notice the subtle vertical gradient.

    hope it helps

提交回复
热议问题