封装KBFont,适配字体
This commit is contained in:
@@ -281,7 +281,7 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = [UILabel new];
|
||||
_titleLabel.text = @"Please Select Your Gender";
|
||||
_titleLabel.font = [UIFont systemFontOfSize:22 weight:UIFontWeightSemibold];
|
||||
_titleLabel.font = [KBFont medium:20];
|
||||
_titleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
_titleLabel.numberOfLines = 1;
|
||||
}
|
||||
@@ -303,7 +303,7 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
||||
_skipButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_skipButton setTitle:@"Skip" forState:UIControlStateNormal];
|
||||
[_skipButton setTitleColor:[UIColor colorWithHex:KBBlackValue] forState:UIControlStateNormal];
|
||||
_skipButton.titleLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
|
||||
_skipButton.titleLabel.font = [KBFont medium:12];
|
||||
_skipButton.backgroundColor = [UIColor colorWithHex:0xE9F7F4];
|
||||
_skipButton.layer.cornerRadius = 16;
|
||||
_skipButton.layer.masksToBounds = YES;
|
||||
@@ -338,7 +338,7 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
||||
if (!_maleLabel) {
|
||||
_maleLabel = [UILabel new];
|
||||
_maleLabel.text = @"Male";
|
||||
_maleLabel.font = [UIFont systemFontOfSize:20 weight:UIFontWeightSemibold];
|
||||
_maleLabel.font = [KBFont medium:20];
|
||||
_maleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
}
|
||||
return _maleLabel;
|
||||
@@ -366,7 +366,7 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
||||
if (!_femaleLabel) {
|
||||
_femaleLabel = [UILabel new];
|
||||
_femaleLabel.text = @"Female";
|
||||
_femaleLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightRegular];
|
||||
_femaleLabel.font = [KBFont medium:20];
|
||||
_femaleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
}
|
||||
return _femaleLabel;
|
||||
@@ -402,7 +402,7 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
||||
if (!_otherLabel) {
|
||||
_otherLabel = [UILabel new];
|
||||
_otherLabel.text = @"The Third Gender";
|
||||
_otherLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightRegular];
|
||||
_otherLabel.font = [KBFont medium:20];
|
||||
_otherLabel.textColor = [UIColor colorWithHex:KBBlackValue];
|
||||
}
|
||||
return _otherLabel;
|
||||
@@ -413,7 +413,7 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
||||
_confirmButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_confirmButton setTitle:@"Turn On The Keyboard" forState:UIControlStateNormal];
|
||||
[_confirmButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
_confirmButton.titleLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightSemibold];
|
||||
_confirmButton.titleLabel.font = [KBFont bold:16];
|
||||
_confirmButton.backgroundColor = [UIColor blackColor];
|
||||
_confirmButton.layer.cornerRadius = 30;
|
||||
_confirmButton.layer.masksToBounds = YES;
|
||||
|
||||
Reference in New Issue
Block a user