iOS6中UIButton标题文本上的字符之间不需要的空格

时间:2014-09-09 11:10:09

标签: ios ios6 uibutton alignment

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;

Screen_Shot

iOS 7 及更新版本中,它显示效果非常好。但是在 iOS 6 中使用时,Button的标题在每个字符之间都有一些不需要的间距。

如何在 iOS 6

中删除 UIButton 标题文字之间的间距

提前致谢。

0 个答案:

没有答案