UILabel+AlertActionFont.m 414 B

123456789101112131415161718192021222324252627
  1. //
  2. // UILabel+AlertActionFont.m
  3. // RunTest
  4. //
  5. // Created by weclouds on 2019/12/29.
  6. // Copyright © 2019 weclouds. All rights reserved.
  7. //
  8. #import "UILabel+AlertActionFont.h"
  9. @implementation UILabel (AlertActionFont)
  10. - (void)setAppearanceFont:(UIFont *)appearanceFont
  11. {
  12. if(appearanceFont)
  13. {
  14. [self setFont:appearanceFont];
  15. }
  16. }
  17. - (UIFont *)appearanceFont
  18. {
  19. return self.font;
  20. }
  21. @end