Setting Font
suggest changeUIFont(name:size:) is nil unless that font is bundled and listed in UIAppFonts. Assigning nil clears the title font.
Swift
myButton.titleLabel?.font = UIFont(name: "YourFontName", size: 20)
Objective C
myButton.titleLabel.font = [UIFont fontWithName:@"YourFontName" size:20];
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents