设置字体
迅速
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];