Skip to main content

Default font size of UITableViewCell


Anybody knows the default font size of UITableViewCell?



Source: Tips4all
Source: Tips4allSource: CCNA FINAL EXAM

Comments

  1. This question was answered here by Vladimir.

    Here's what he said:


    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):


    UITableViewCellStyleSubtitle:

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

    detailsLabel: Helvetica, size: systemFontSize (14 px)
    UITableViewCellStyleValue1:

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

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

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

    detailsLabel: Helvetica, size: labelFontSize (17 px)



    UITableViewCellStyleSubtitle font size

    ReplyDelete
  2. [UIFont boldSystemFontOfSize:17.0];


    Which was discovered by changing the font of a UITableViewCell's textLabel until it matched the default.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?