gpt4 book ai didi

iphone - UITableViewCell 的默认字体大小

转载 作者:太空狗 更新时间:2023-10-30 03:09:12 25 4
gpt4 key购买 nike

有人知道 UITableViewCell 的默认字体大小吗?

最佳答案

question was answered here通过 Vladimir .

他是这样说的:

You can always set any font to those labels in code so if you want some guaranteed fixed values you'd better do that as size values may vary depending on many factors (cell's style, sdk version, os version etc).

I've tested on simulator with 4.2 SDK version and got following results (no extra properties were set for cells):

  1. UITableViewCellStyleSubtitle:

    textLabel: Helvetica Bold, size: labelFontSize+1 (18 px)

    detailsLabel: Helvetica, size: systemFontSize (14 px)

  2. UITableViewCellStyleValue1:

    textLabel: Helvetica Bold, size: labelFontSize (17 px)

    detailsLabel: Helvetica Bold, size: systemFontSize+1 (15 px)

  3. UITableViewCellStyleValue2:

    textLabel: Helvetica Bold, size: smallSystemFontSize (12 px)

    detailsLabel: Helvetica, size: labelFontSize (17 px)

Default UITableViewCellStyleSubtitle font size?

关于iphone - UITableViewCell 的默认字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4927781/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com