Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default font size of UITableViewCell

Anybody knows the default font size of UITableViewCell?

like image 846
fatih Avatar asked Feb 07 '11 23:02

fatih


People also ask

What is the font size by default?

Set Font Size With Em The default text size in browsers is 16px. So, the default size of 1em is 16px.

What are the different font sizes?

Some of these dimensions include xx-small, x-small, small, medium, large, x-large, and xx-large. Font size may also be specified using Point, Pica, Inch, Centimeter, Millimeter, em, and percentage.


1 Answers

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

  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?

like image 164
lillialexis Avatar answered Sep 20 '22 13:09

lillialexis