設定字型
迅速
myButton.titleLabel?.font = UIFont(name: "YourFontName", size: 20)
目標 C.
myButton.titleLabel.font = [UIFont fontWithName:@"YourFontName" size:20];
myButton.titleLabel?.font = UIFont(name: "YourFontName", size: 20)
myButton.titleLabel.font = [UIFont fontWithName:@"YourFontName" size:20];