Setting Font

suggest change

UIFont(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];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents