封装KBFont,适配字体
This commit is contained in:
@@ -192,8 +192,8 @@
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = [UILabel new];
|
||||
_titleLabel.numberOfLines = 0;
|
||||
_titleLabel.text = @"Points\nMall"; // 两行展示
|
||||
_titleLabel.font = [UIFont systemFontOfSize:30 weight:UIFontWeightBold];
|
||||
_titleLabel.text = KBLocalized(@"Points\nMall"); // 两行展示
|
||||
_titleLabel.font = [KBFont medium:22];
|
||||
_titleLabel.textColor = [UIColor colorWithHex:0x1B1F1A];
|
||||
}
|
||||
return _titleLabel;
|
||||
@@ -254,9 +254,9 @@
|
||||
- (UILabel *)myPointsLabel {
|
||||
if (!_myPointsLabel) {
|
||||
_myPointsLabel = [UILabel new];
|
||||
_myPointsLabel.text = @"My Points";
|
||||
_myPointsLabel.text = KBLocalized(@"My Points");
|
||||
_myPointsLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
_myPointsLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightSemibold];
|
||||
_myPointsLabel.font = [KBFont regular:14];
|
||||
}
|
||||
return _myPointsLabel;
|
||||
}
|
||||
@@ -274,7 +274,7 @@
|
||||
_amountLabel = [UILabel new];
|
||||
_amountLabel.text = @"88.00";
|
||||
_amountLabel.textColor = [UIColor colorWithHex:KBColorValue];
|
||||
_amountLabel.font = [UIFont systemFontOfSize:40 weight:UIFontWeightBold];
|
||||
_amountLabel.font = [KBFont bold:40];
|
||||
_amountLabel.adjustsFontSizeToFitWidth = YES;
|
||||
// _amountLabel.minimumScaleFactor = 0.7;
|
||||
}
|
||||
@@ -284,9 +284,9 @@
|
||||
- (UIButton *)rechargeButton {
|
||||
if (!_rechargeButton) {
|
||||
_rechargeButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_rechargeButton setTitle:@"Recharge" forState:UIControlStateNormal];
|
||||
[_rechargeButton setTitle:KBLocalized(@"Recharge") forState:UIControlStateNormal];
|
||||
[_rechargeButton setTitleColor:[UIColor colorWithHex:KBBlackValue] forState:UIControlStateNormal];
|
||||
_rechargeButton.titleLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightSemibold];
|
||||
_rechargeButton.titleLabel.font = [KBFont medium:13];
|
||||
UIImage *bg = [UIImage imageNamed:@"recharge_btn_bg"];
|
||||
[_rechargeButton setBackgroundImage:bg forState:UIControlStateNormal];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user