zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  UILabel+ZJFAdditon.m
//  ProBIM
//
//  Created by zjf on 2017/12/25.
//  Copyright © 2017年 ProBIM. All rights reserved.
//
 
#import "UILabel+ZJFAdditon.h"
 
@implementation UILabel (ZJFAdditon)
+ (instancetype)z_labelWithText:(NSString *)text Color:(UIColor *)color isBold:(BOOL)isBold Font:(CGFloat)fontSize{
    UILabel *label = [[UILabel alloc]init];
    label.text = text;
    label.textColor = color;
    if (isBold) {
        label.font = [UIFont fontWithName:@"PingFangSC-Medium" size:fontSize];
    }else {
        label.font = [UIFont fontWithName:@"PingFangSC-Regular" size:fontSize];
    }
    return label;
}
@end