//
|
// 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
|