I’m trying to apply a custom font throughout my iOS app. I found that I could use:
[[UILabel appearance] setFont:[UIFont fontWithName:@"Proxima Nova" size:17.0]];
-
To set the default font and size for all
UILabels. However, not all myUILabelsshare the same font size. -
In Set a default font for whole iOS app?, someone had the same concern, and was told to set the size parameter to 0.0 to only set the font and not font size.
- When I tried doing this, all the
UILabeltext in my app disappeared (because evidentlyiOStook the 0.0 font size literally).
Any suggestions as to how I can universally set a font but not size? Thanks a lot!
1 Answer