//
//  UILabelUtils.m
//  SDKDemo
//
//  Created by JasWorkSpace on 2018/10/18.
//  Copyright © 2018 JasWorkSpace. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "UILabelUtils.h"

@implementation UILabelUtils

+ (UILabel *) createUILabel
{
    UILabel * lab = [UILabel new];
    [UILabelUtils configUILabel:lab];
    return lab;
}

+ (UILabel *) createUILabelWithFrame:(CGRect) rect
{
    UILabel * lab = [[UILabel alloc] initWithFrame:rect];
    [UILabelUtils configUILabel:lab];
    return lab;
}

+ (void) configUILabel:(UILabel *) lab
{
    //lab.font = [UIFont systemFontOfSize:13.0];
    lab.textColor = [UIColor grayColor];
    lab.textAlignment = NSTextAlignmentCenter;
    lab.lineBreakMode = NSLineBreakByWordWrapping;
}

@end
