UIButton的代码
btnChooseHour.layer.cornerRadius = 4.0;
btnChooseHour.clipsToBounds = YES;
btnChooseHour.layer.borderColor = [CustomUIControls getConstantCustomColor:COLOR_67].CGColor; //Custom Color
btnChooseHour.layer.borderWidth = 0.7;
[btnChooseHour.titleLabel setFont:FONT_AWESOME_(13)]; //Custom Font
[btnChooseHour.titleLabel setMinimumScaleFactor:0.8];
[btnChooseHour setTitleColor:[CustomUIControls getConstantCustomColor:COLOR_153] forState:UIControlStateNormal]; //Custom Color
[btnChooseHour setTitle:[NSString stringWithFormat:@"%@\t%@", strDisplayDate, [NSString fontAwesomeIconStringForEnum:FAIconCaretDown]] forState:UIControlStateNormal];//Setting Title
btnChooseHour.titleLabel.adjustsFontSizeToFitWidth = true;
在 iOS 7 及更新版本中,它显示效果非常好。但是在 iOS 6 中使用时,Button的标题在每个字符之间都有一些不需要的间距。
如何在 iOS 6
中删除 UIButton 标题文字之间的间距提前致谢。