FahimF / FloatLabelFields

Text entry controls which contain a built-in title/label so that you don't have to add a separate title for each field.
MIT License
1.19k stars 107 forks source link

Font Customization for Placeholder Label #3

Closed cliftonlabrum closed 9 years ago

cliftonlabrum commented 9 years ago

I can set the font on the UITextField I'm using, but how do I specify the font for the label above the text field?

image

FahimF commented 9 years ago

The "titleFont" property should allow you to set the title font - however, there are two caveats:

  1. The font you set will be used only in non-placeholder mode. In place-holder mode, the control will use the standard font since the control is using the built-in placeholder display functionality.
  2. The title does not adjust for the font size changes currently. This is a bug that I'm in the process of fixing right now.