不要子类按钮在 IB 中做所有事情会更好。这就是你如何实现你想要的:
选择按钮-> 转到属性检查器->类型-> 选择圆角矩形。这将为您提供默认按钮外观。
然后像这样选择字体(按T字母):

还要选择字体后面的文本颜色。
结果:

编辑:
以编程方式创建按钮:
//create the button with RoundedRect type
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
//set the position of the button
button.frame = CGRectMake(100, 150, 100, 30);
//set the button's title
[button setTitle:@"Click Me!" forState:UIControlStateNormal];
//set the button's font
button.titleLabel.font = [UIFont fontWithName:@"Chalkduster" size:16];
//set the button's line break mode
button.titleLabel.lineBreakMode = UILineBreakModeWordWrap;
//set the button's text color
[button setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
//button.titleLabel.textColor = [UIColor greenColor]; // don't use this because button's text color after clicking it will be blue (default).
//add the button to the view
[self.view addSubview:button];
结果:

注意:请勿使用textColor
,因为单击按钮后您的文本颜色将默认为蓝色。