UILabel+Create.m 439 B

123456789101112131415161718192021
  1. //
  2. // UILabel+Create.m
  3. // HuoChat
  4. //
  5. // Created by macWangDC on 2022/9/28.
  6. // Copyright © 2022 Huobi. All rights reserved.
  7. //
  8. #import "UILabel+Create.h"
  9. @implementation UILabel (Create)
  10. + (UILabel *)labelCreateWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)color {
  11. UILabel *label = [[UILabel alloc] init];
  12. label.text = text;
  13. label.font = font;
  14. label.textColor = color;
  15. return label;
  16. }
  17. @end