iOS Label Text Size

  1. 3 months ago

    Scott R

    Dec 15 Pre-Release Testers, Xojo Pro

    I'd like to upscale the size of a label's text. How is this done in iOS?

    ex: a heading on a dashboard

  2. Art G

    Dec 16 Prescott AZ

    In Xojo, select the label and then select the "gear" icon at the top of the Inspector. It's recommended to use a font built into iOS.

    http://iosfonts.com

    You might have to adjust the height of the label depending on the font size.

    You can also adjust font sizes programmatically, like in the Open event of a view, but that won't show in the IDE.

  3. Paul L

    Dec 17 Xojo Inc http://docs.xojo.com

    To change in the IDE, use the Inspector as Art says.

    To change in code, use the iOSLabel.TextFont property and the iOSFont class .

    Label1.TextFont = iOSFont.BoldSystemFont(40)

or Sign Up to reply!