封装KBFont,适配字体
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = [UILabel new];
|
||||
_titleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
_titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold];
|
||||
_titleLabel.font = [KBFont medium:16];
|
||||
_titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||
_titleLabel.text = @"High EQ"; // 默认文案
|
||||
}
|
||||
@@ -186,7 +186,7 @@
|
||||
_downloadLabel = [UILabel new];
|
||||
_downloadLabel.textColor = [UIColor colorWithHex:KBColorValue];
|
||||
_downloadLabel.backgroundColor = [UIColor colorWithHex:0xEDFFFD];
|
||||
_downloadLabel.font = [UIFont systemFontOfSize:13 weight:UIFontWeightMedium];
|
||||
_downloadLabel.font = [KBFont regular:13];
|
||||
_downloadLabel.textAlignment = NSTextAlignmentCenter;
|
||||
_downloadLabel.text = @"Download: 1 Million";
|
||||
}
|
||||
@@ -207,7 +207,7 @@
|
||||
if (!_descLabel) {
|
||||
_descLabel = [UILabel new];
|
||||
_descLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
_descLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightSemibold];
|
||||
_descLabel.font = [KBFont medium:14];
|
||||
_descLabel.numberOfLines = 0;
|
||||
_descLabel.text = @"Be Neither Too Close\nNor Too Distant";
|
||||
}
|
||||
@@ -219,7 +219,7 @@
|
||||
_saveButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_saveButton setTitle:@"Save" forState:UIControlStateNormal];
|
||||
[_saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
|
||||
_saveButton.titleLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightSemibold];
|
||||
_saveButton.titleLabel.font = [KBFont medium:16];
|
||||
_saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];
|
||||
_saveButton.layer.cornerRadius = 24.0;
|
||||
_saveButton.layer.masksToBounds = YES;
|
||||
|
||||
Reference in New Issue
Block a user